Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadProductionConfig ¶ added in v1.0.5
func LoadProductionConfig()
LoadProductionConfig load config
Types ¶
type APIResponse ¶ added in v1.0.5
type APIResponse struct { Message string `json:",omitempty"` Data interface{} `json:",omitempty"` }
APIResponse api response
type Configuration ¶
type Configuration struct { DatabaseConfig *DatabaseConfiguration RedisConfig *RedisConfiguration GoogleOauthConfig *GoogleOauthConfiguration JwtKey []byte Host string ResourceVersion string HTTPS bool EnableSitemap bool IsDebug bool }
Configuration app configuration
var Config *Configuration
Config global config
type DatabaseConfiguration ¶
DatabaseConfiguration gorm
type GoogleOauthConfiguration ¶
GoogleOauthConfiguration google oauth2
type HeaderData ¶
type HeaderData struct { Title string Description string ResourceVersion string PageStyle *PageStyleData `json:",omitempty"` Alert *AlertData `json:",omitempty"` }
HeaderData header data
type PageResponse ¶ added in v1.0.5
type PageResponse struct { Header *HeaderData `json:",omitempty"` Data interface{} }
PageResponse page response
func (*PageResponse) SetAlert ¶ added in v1.0.5
func (r *PageResponse) SetAlert(alert *AlertData)
SetAlert set alert
func (*PageResponse) SetLogin ¶ added in v1.0.5
func (r *PageResponse) SetLogin(login *LoginData)
SetLogin set login
func (*PageResponse) SetNavStyleName ¶ added in v1.0.5
func (r *PageResponse) SetNavStyleName(style *PageStyleData)
SetNavStyleName set nav style name
type PageStyleData ¶
PageStyleData bootswatch styles
type RedisConfiguration ¶
RedisConfiguration redis config
Click to show internal directories.
Click to hide internal directories.