Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppConfig ¶
type AppConfig struct { Server Server `json:"server"` Auth AuthConfig `json:"auth"` DB map[string]*DbConfig `json:"db"` Redis map[string]*RedisConfig `json:"redis"` }
type AuthConfig ¶
type CorsConfig ¶
type CorsConfig struct {
AllowOrigins []string `json:"allow-origins"`
}
CorsConfig 跨域配置
type HTTPServerConfig ¶
type HTTPServerConfig struct { ServerName string `json:"server-name"` Listen string `json:"listen"` Cors CorsConfig `json:"cors"` }
type RedisConfig ¶
type Server ¶
type Server struct {
HTTP HTTPServerConfig
}
Click to show internal directories.
Click to hide internal directories.