Documentation ¶
Index ¶
- func VerifyToken(ja *jwtauth.JWTAuth, tokenString string) (jwt.Token, error)
- type BasicAuth
- type Matcher
- type Option
- func WithDebug(d bool) Option
- func WithDefaultOrigin(o *Origin) Option
- func WithListen(l string) Option
- func WithLogger(l *zap.Logger) Option
- func WithMatchers(m []*Matcher) Option
- func WithOauth2Config(c oauth2.Config) Option
- func WithOidcProvider(p *oidc.Provider) Option
- func WithOrigins(o map[string]*Origin) Option
- func WithSigningKey(k string) Option
- type Origin
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(s *Server)
func WithDefaultOrigin ¶
WithDefaultOrigin sets the default origin to use if there's no match
func WithOauth2Config ¶
WithOauth2Config sets the config for oauth2
func WithOidcProvider ¶
WithOidcProvider sets the OIDC provider
func WithOrigins ¶
WithOrigins sets the map of backends
type Origin ¶
type Origin struct { BaseUrl string `mapstructure:"url"` Insecure bool `mapstructure:"insecure"` SetHeaders map[string]string `mapstructure:"set_headers"` AddHeaders map[string]string `mapstructure:"add_headers"` Prefix string `mapstructure:"prefix"` Oidc bool `mapstructure:"oidc"` BasicAuth *BasicAuth `mapstructure:"basicauth"` }
Origin defines a backend
Click to show internal directories.
Click to hide internal directories.