Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationConfig ¶
type AuthorizationConfig struct {
RequiredScopes []string `cfg:"requiredScopes"`
}
type CORSConfig ¶
type CORSConfig struct {
AllowedOrigins []string `cfg:"allowedOrigins"`
AllowedMethods []string `cfg:"allowedMethods"`
AllowedHeaders []string `cfg:"allowedHeaders"`
ExposedHeaders []string `cfg:"exposedHeaders"`
AllowCredentials bool `cfg:"allowCredentials"`
MaxAge int `cfg:"maxAge"`
OptionsPassthrough bool `cfg:"optionsPassthrough"`
Debug bool `cfg:"debug"`
}
type Config ¶
type Config []SubrouterConfig
type RateLimitConfig ¶
type SubrouterConfig ¶
type SubrouterConfig struct {
Name string `cfg:"name"`
TargetURL string `cfg:"targetUrl"`
Prefix string `cfg:"prefix"`
StripPrefix bool `cfg:"stripPrefix,default=false"`
AuthorizationConfig *AuthorizationConfig `cfg:"authorizationConfig"`
RateLimitConfig *RateLimitConfig `cfg:"rateLimit"`
GZip bool `cfg:"gzip,default=false"`
CORSConfig *CORSConfig `cfg:"corsConfig"`
}
Click to show internal directories.
Click to hide internal directories.