Versions in this module Expand all Collapse all v0 v0.1.0 Apr 1, 2020 Changes in this version + const AuthenticationHeaderPrefix + var ErrMalformattedAuthHeader = errors.New("Authorization header badly formed") + var ErrNoAuthHeader = errors.New("Authorization header not set") + func NewRouter(config *Config, db database.Client, shadow shadow.Client, email email.Client) *mux.Router + func OptionsHandlerFactory(methods []string) http.Handler + type Config struct + JwtDuration string + JwtSecret string + func NewConfig() (*Config, error) + func (c *Config) ParseDuration() (time.Duration, error) + type CustomAuthClaims struct + AccountId string + type MiddlewareFunc func(http.Handler) http.Handler + type Route struct + HandlerFunc http.HandlerFunc + Method string + Name string + Pattern string + type Routes []Route