Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Database ¶
type Database struct { Type string `yaml:"type" default:"mysql"` Protocol string `yaml:"protocol" default:"tcp"` Host string `yaml:"host" default:"localhost"` Port string `yaml:"port" default:"3306"` DBName string `yaml:"dbname" default:"flow"` Username string `yaml:"username"` Password string `yaml:"password"` MaxOpenConns int `yaml:"maxOpenConns" default:"15"` MaxIdleConns int `yaml:"maxIdleConns" default:"5"` ConnMaxLifetime int `yaml:"connMaxLifetime" default:"1"` }
type Http ¶
type Http struct { Port int32 `yaml:"port" default:"8099"` URLPrefix string `yaml:"urlPrefix" default:""` Tls Tls `yaml:"tls"` CORS middleware.CORSConfig `yaml:"cors"` }
Click to show internal directories.
Click to hide internal directories.