Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { ServerAddress string FileStorageType string FileStorage interface{} DB *MySQLConfig StubCacheTTL time.Duration StubCacheStrategy string BodyStoreThreshold int }
Config defines config for application
type MySQLConfig ¶
type MySQLConfig struct { DSN string `json:"dsn" yaml:"dsn"` Server string `json:"server" yaml:"server"` Schema string `json:"schema" yaml:"schema"` User string `json:"user" yaml:"user"` Password string `json:"password" yaml:"password"` Option string `json:"option" yaml:"option"` ConnectionLifetimeSeconds int `json:"connection_lifetime_seconds" yaml:"connection_lifetime_seconds"` MaxIdleConnections int `json:"max_idle_connections" yaml:"max_idle_connections"` MaxOpenConnections int `json:"max_open_connections" yaml:"max_open_connections"` EnableTracing bool `json:"enable_tracing" yaml:"enable_tracing"` }
MySQLConfig contains config data to connect to MySQL database
Click to show internal directories.
Click to hide internal directories.