1
0
mirror of https://github.com/volatiletech/authboss.git synced 2025-01-08 04:03:53 +02:00
authboss/config.go
Aaron 92b3172a3e Add a lot of module related stuff.
- Leave a failing test to make hate not love.
2015-01-05 00:18:41 -08:00

25 lines
586 B
Go

package authboss
import (
"io"
"io/ioutil"
)
// Config holds all the configuration for both authboss and it's modules.
type Config struct {
MountPath string `json:"mountPath" xml:"mountPath"`
AuthLoginPageURI string `json:"authLoginPage" xml:"authLoginPage"`
AuthLogoutRedirect string `json:"authLogoutRedirect" xml:"authLogoutRedirect"`
Storer Storer `json:"-" xml:"-"`
LogWriter io.Writer `json:"-" xml:"-"`
}
// NewConfig creates a new config full of default values ready to override.
func NewConfig() *Config {
return &Config{
LogWriter: ioutil.Discard,
}
}