From f7834b02a174fa3823d0036526cda4e1ef85e637 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 21 Oct 2019 23:19:16 +0200 Subject: [PATCH] Fixed lint --- handler/config.go | 3 +++ 1 file changed, 3 insertions(+) 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 }