Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServer ¶
func NewServer(cfg *YAxCConfig) (s *yAxCServer)
Types ¶
type CacheBackend ¶
type CacheBackend struct {
// contains filtered or unexported fields
}
type RedisBackend ¶
type RedisBackend struct {
// contains filtered or unexported fields
}
type YAxCConfig ¶
type YAxCConfig struct { // Address BindAddress string // required // Redis RedisAddress string // "" -> only use cache RedisPassword string RedisDatabase int RedisPrefixVal string RedisPrefixHsh string // Timeout DefaultTTL time.Duration // 0 -> infinite MinTTL time.Duration // == MaxTTL -> cannot specify TTL MaxTTL time.Duration // == MinTTL -> cannot specify TTL // Other MaxBodyLength int EnableEncryption bool ProxyHeader string }
Click to show internal directories.
Click to hide internal directories.