Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Protocol string Host string Port int HTTPSPort int // BodySizeLimit is the limit of the request body size. BodySizeLimit int64 // NetworkType string UnixDomainSocket string // TLS // TLS Certificate TLSCertFile string // TLS Private Key TLSKeyFile string // TLS Ca Certificate TLSCaCertFile string // TLSCert string TLSKey string // LogLevel string `config:"log_level"` // SecretKey string `config:"secret_key"` // Session session.Config `config:"session"` // Cache cache.Config `config:"cache"` // Redis Redis `config:"redis"` // Banner string // Monitor Monitor `config:"monitor"` // Logger Logger Logger `config:"logger"` }
Config defines the config of zoox.Application.
type Logger ¶ added in v1.16.3
type Logger struct { // Level is the log level. Level string `config:"level"` // Middleware is the logger middleware. Middleware `config:"middleware"` }
Logger ...
type Middleware ¶ added in v1.16.3
type Middleware struct { // Disabled is the logger middleware disabled. Disabled bool `config:"disabled"` }
Middleware ...
type Monitor ¶
type Monitor struct { Prometheus `config:"prometheus"` Sentry `config:"sentry"` }
Monitor defines the config of monitor.
type Prometheus ¶
Prometheus ...
Click to show internal directories.
Click to hide internal directories.