Documentation ¶
Index ¶
Constants ¶
View Source
const FileTypeJson fileType = "json"
View Source
const FileTypeToml fileType = "toml"
View Source
const FileTypeYaml fileType = "yaml"
Variables ¶
This section is empty.
Functions ¶
func InitWithType ¶
InitWithType initialize configuration from file with specified FileType
func SetEnvironmentServerPort ¶
func SetEnvironmentServerPort(config interface{})
Types ¶
type REDIS ¶
type REDIS struct { ADDR string PASSWORD string DB string POOLSIZE string DURATION string MARSHALINDENT string MODE string ROUTEBYLATENCY string ROUTERANDOMLY string DIALTIMEOUT string }
func (REDIS) GetDialTimeOut ¶
func (REDIS) GetPoolSize ¶
func (REDIS) IsMarshalIndent ¶
func (REDIS) RouteByLatency ¶
func (REDIS) RouteRandomly ¶
Click to show internal directories.
Click to hide internal directories.