Documentation ¶
Overview ¶
Package appcontext provides config options
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigType ¶
type ConfigType struct { ServiceName string `json:"service_name" yaml:"service_name" env:"SERVICE_NAME" default:"adnet.api"` DatacenterName string `json:"datacenter_name" yaml:"datacenter_name" env:"DC_NAME" default:"??"` Hostname string `json:"hostname" yaml:"hostname" env:"HOSTNAME"` Hostcode string `json:"hostcode" yaml:"hostcode" env:"HOSTCODE"` LogAddr string `json:"log_addr" default:"" env:"LOG_ADDR"` LogLevel string `json:"log_level" default:"debug" env:"LOG_LEVEL"` LogEncoder string `json:"log_encoder" env:"LOG_ENCODER"` Server serverConfig `json:"server" yaml:"server"` Session sessionConfig `json:"session" yaml:"session"` System systemConfig `json:"system" yaml:"system"` SocialAuth socialAuthConfig `json:"social_auth" yaml:"social_auth"` OAuth2 oauth2Config `json:"oauth2" yaml:"oauth2"` Messanger messangerConfig `json:"messanger" yaml:"messanger"` Permissions permissionConfig `json:"permissions" yaml:"permissions"` Billing billingConfig `json:"billing" yaml:"billing"` Statistic statisticConfig `json:"statistic" yaml:"statistic"` }
ConfigType contains all application options
var Config ConfigType
Config global value
func (*ConfigType) IsInfo ¶
func (cfg *ConfigType) IsInfo() bool
func (*ConfigType) String ¶
func (cfg *ConfigType) String() (res string)
String implementation of Stringer interface
Click to show internal directories.
Click to hide internal directories.