Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config interface {
GetName() string
GetDatabase() *DatabaseConfig
GetSession() *SessionConfig
GetSocket() *SocketConfig
GetRuntime() *RuntimeConfig
GetConsole() *ConsoleConfig
GetIAP() *IAPConfig
}
type ConsoleConfig ¶
type ConsoleConfig struct {
Address string `yaml:"address" json:"address"`
}
type DatabaseConfig ¶
type DatabaseConfig struct {
DSN string `yaml:"dsn" json:"dsn"`
ReadDSN string `yaml:"read_dsn" json:"read_dsn"`
MaxOpenConns int `yaml:"max_open_conns" json:"max_open_conns"`
MaxIdleConns int `yaml:"max_idle_conns" json:"max_idle_conns"`
MaxConnLifetime time.Duration `yaml:"max_conn_lifetime" json:"max_conn_lifetime"`
MaxConnIdleTime time.Duration `yaml:"max_conn_idle_time" json:"max_conn_idle_time"`
Migration bool `yaml:"migration" json:"migration"`
}
type IAPAppleConfig ¶
type IAPAppleConfig struct {
NotificationsEndpointID string `yaml:"notifications_endpoint_id" json:"notifications_endpoint_id"`
}
type IAPConfig ¶
type IAPConfig struct {
Apple IAPAppleConfig `yaml:"apple" json:"apple"`
Google IAPGoogleConfig `yaml:"google" json:"google"`
Huawei IAPHuaweiConfig `yaml:"huawei" json:"huawei"`
FacebookInstant IAPFacebookConfig `yaml:"facebook_instant" json:"facebook_instant"`
Samsung IAPSamsungConfig `yaml:"samsung" json:"samsung"`
}
type IAPFacebookConfig ¶
type IAPFacebookConfig struct {
AppSecret string `yaml:"app_secret" json:"app_secret"`
}
type IAPGoogleConfig ¶
type IAPGoogleConfig struct {
ClientEmail string `yaml:"client_email" json:"client_email"`
PrivateKey string `yaml:"private_key" json:"private_key"`
PackageName string `yaml:"package_name" json:"package_name"`
NotificationsEndpointID string `yaml:"notifications_endpoint_id" json:"notifications_endpoint_id"`
}
type IAPHuaweiConfig ¶
type IAPSamsungConfig ¶
type IAPSamsungConfig struct {
PackageName string `yaml:"package_name" json:"package_name"`
}
type RuntimeConfig ¶
type SessionConfig ¶
type SocketConfig ¶
Click to show internal directories.
Click to hide internal directories.