Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AmazonS3Settings *amazonS3Settings
View Source
var AmazonSesSettings *amazonSesSettings
View Source
var MitakeSmsSettings *mitakeSmsSettings
Functions ¶
This section is empty.
Types ¶
type AMQPConf ¶
type AMQPConf struct { ProtocolVer string `envField:"amqp:ProtocolVer" default:"1"` Host string `envField:"amqp:Host" default:"127.0.0.1"` Port int `envField:"amqp:Port" default:"5672"` Username string `envField:"amqp:Username" default:""` Password string `envField:"amqp:Password" default:""` Locale string `envField:"amqp:Locale" default:""` FrameMax int `envField:"amqp:FrameMax" default:"10"` Heartbeat int `envField:"amqp:Heartbeat" default:"1000"` VisualHost string `envField:"amqp:VisualHost" default:"/"` }
type AppConf ¶
type AppConf struct { Codename string `envField:"app:Codename" default:""` LogLevel string `envField:"app:LogLevel" default:"info"` RpcCommandMode bool `envField:"app:RpcCommandMode" default:"false"` RpcBindPort int `envField:"app:RpcBindPort" default:"9999"` RpcEndpoint string `envField:"app:RpcEndpoint" default:"0.0.0.0"` }
type CacheDbConf ¶
type CacheDbConf struct { Host string `envField:"cachedb:Host" default:"127.0.0.1"` Port int `envField:"cachedb:Port" default:"6379"` Password string `envField:"cachedb:Password" default:""` MaxIdle int `envField:"cachedb:MaxIdle" default:"100"` MaxActive int `envField:"cachedb:MaxActive" default:"4000"` IdleTimeout int `envField:"cachedb:IdleTimeout" default:"180"` Wait bool `envField:"cachedb:Wait" default:"true"` Database int `envField:"cachedb:Database" default:"0"` }
type DocDbConf ¶
type DocDbConf struct { Protocol string `envField:"docdb:Protocol"` Host string `envField:"docdb:Host"` DefaultDb string `envField:"docdb:DefaultDb"` Username string `envField:"docdb:Username"` Password string `envField:"docdb:Password"` ReplicaSet string `envField:"docdb:ReplicaSet"` ReadPreference string `envField:"docdb:ReadPreference"` ConnectTimeoutMs int `envField:"docdb:ConnectTimeoutMs"` SocketTimeoutMs int `envField:"docdb:SocketTimeoutMs"` ReconnectInterval int `envField:"docdb:ReconnectInterval"` PoolSize int `envField:"docdb:PoolSize"` BufferMaxEntries int `envField:"docdb:BufferMaxEntries"` KeepAlive bool `envField:"docdb:KeepAlive"` BufferCommands bool `envField:"docdb:BufferCommands"` AutoReconnect bool `envField:"docdb:AutoReconnect"` SSL bool `envField:"docdb:SSL"` CaFilePath string `envField:"docdb:CaFilePath"` }
type RDBConf ¶
type RDBConf struct { Dialects string `envField:"rds:Dialects"` Host string `envField:"rds:Host"` User string `envField:"rds:User"` Pass string `envField:"rds:Pass"` DbNames []string `envField:"rds:DbNames"` TablePrefix string `envField:"rds:TablePrefix"` MaxIdleConn int `envFields:"rds:MaxIdleConn"` MaxOpenConn int `envFields:"rds:MaxOpenConn"` }
Click to show internal directories.
Click to hide internal directories.