README ¶ Basic Auth Installation go get github.com/gowool/middleware/basicauth License Distributed under MIT License, please see license file within the code for more details. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func Middleware(cfg *Config) wool.Middleware type BasicAuth func New(cfg *Config) *BasicAuth func (m *BasicAuth) Middleware(next wool.Handler) wool.Handler type Config func (cfg *Config) Init() type Validator Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Middleware ¶ func Middleware(cfg *Config) wool.Middleware Types ¶ type BasicAuth ¶ type BasicAuth struct { // contains filtered or unexported fields } func New ¶ func New(cfg *Config) *BasicAuth func (*BasicAuth) Middleware ¶ func (m *BasicAuth) Middleware(next wool.Handler) wool.Handler type Config ¶ type Config struct { Realm string `mapstructure:"realm"` Validator Validator } func (*Config) Init ¶ func (cfg *Config) Init() type Validator ¶ type Validator func(c wool.Ctx, user, password string) (bool, error) Source Files ¶ View all Source files basicauth.go Click to show internal directories. Click to hide internal directories.