Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitBanner ¶
func InitBanner()
func InitCors ¶
func InitCors(cors *Cors) gin.HandlerFunc
func InitDatabase ¶
func InitDatabase(c *Conf)
Types ¶
type Conf ¶
type Conf struct { Profile string `yaml:"profile"` Server Server `yaml:"server"` Datasource []Datasource `yaml:"datasource"` }
type Cors ¶
type Cors struct { Enable bool `yaml:"enable"` AllowOrigin string `yaml:"allow-origin"` AllowMethods string `yaml:"allow-methods"` AllowHeaders string `yaml:"allow-headers"` AllowCredentials string `yaml:"allow-credentials"` ExposeHeaders string `yaml:"expose-headers"` MaxAge string `yaml:"max-age"` }
type Datasource ¶
Click to show internal directories.
Click to hide internal directories.