diff --git a/handler/config.go b/handler/config.go index 8a5aaaa..b0837ac 100644 --- a/handler/config.go +++ b/handler/config.go @@ -21,6 +21,7 @@ import ( "github.com/op/go-logging" ) +// Config contains the config for the web handler type Config struct { AuthProvider *web.Auths LoggingProvider *logging.Logger @@ -33,10 +34,12 @@ func init() { config = &Config{} } +// SetAuthProvider sets the auth provider in config func SetAuthProvider(provider *web.Auths) { config.AuthProvider = provider } +// SetLoggingProvider sets the logging provider in the config func SetLoggingProvider(logger *logging.Logger) { config.LoggingProvider = logger }