Documentation
¶
Index ¶
- type AmqpLoggingConfiguration
- type ApacheLoggingConfiguration
- type Application
- type ApplicationAuth
- type AuthWriterConfig
- type Backend
- type Caching
- type Configuration
- type ConsulConfiguration
- type GlobalAuth
- type LoggingConfiguration
- type OptionsConfiguration
- type ProviderAuthConfig
- type ProxyConfiguration
- type RateLimiting
- type RedisConfiguration
- type Routing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApacheLoggingConfiguration ¶
type ApacheLoggingConfiguration struct {
Filename string `json:"filename"`
}
type Application ¶
type Application struct {
Routing Routing `json:"routing"`
Backend Backend `json:"backend"`
Auth ApplicationAuth `json:"auth"`
Caching Caching `json:"caching"`
RateLimiting bool `json:"rate_limiting"`
}
type ApplicationAuth ¶
type ApplicationAuth struct {
Disable bool `json:"disable"`
Writer AuthWriterConfig `json:"writer"`
}
type AuthWriterConfig ¶
type Configuration ¶
type Configuration struct {
Applications map[string]Application `json:"applications"`
RateLimiting RateLimiting `json:"rate_limiting"`
Authentication GlobalAuth `json:"authentication"`
Consul ConsulConfiguration `json:"consul"`
Proxy ProxyConfiguration `json:"proxy"`
Redis RedisConfiguration `json:"redis"`
Logging []LoggingConfiguration `json:"logging"`
}
type ConsulConfiguration ¶
type ConsulConfiguration struct {
Host string `json:"host"`
Port int `json:"port"`
DataCenter string `json:"datacenter"`
}
func (ConsulConfiguration) Address ¶
func (c ConsulConfiguration) Address() string
type GlobalAuth ¶
type LoggingConfiguration ¶
type LoggingConfiguration struct {
Type string `json:"type"`
AmqpLoggingConfiguration
ApacheLoggingConfiguration
}
type OptionsConfiguration ¶
type ProviderAuthConfig ¶
type ProviderAuthConfig struct {
Url string `json:"url"`
Parameters map[string]interface{} `json:"parameters"`
PreAuthenticationHook string `json:"hook_pre_authentication"`
AllowAuthentication bool `json:"allow_authentication"`
AuthenticationUri string `json:"authentication_uri"`
Service string `json:"service"`
}
type ProxyConfiguration ¶
type RateLimiting ¶
type RedisConfiguration ¶
type RedisConfiguration struct {
Address string `json:"address"`
Password string `json:"password"`
Database int `json:"database"`
}
func (RedisConfiguration) DialOptions ¶ added in v1.1.1
func (c RedisConfiguration) DialOptions() []redis.DialOption
Click to show internal directories.
Click to hide internal directories.