Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrConfigFormatNotSupported = customerrors.BAD_REQUEST_ERROR("config format not supported, Expect one of json, yaml") ErrInvalidConfigReaderName = customerrors.BAD_REQUEST_ERROR("invalid config reader name, Expect one of consul, zookeeper, database, file") ErrInvalidConfig = customerrors.BAD_REQUEST_ERROR("invalid config") )
Functions ¶
Types ¶
type ConfigFormatType ¶
type ConfigFormatType string
ConfigFormatType represents the type of config format.
const ( ConfigFormatJSON ConfigFormatType = "json" ConfigFormatYAML ConfigFormatType = "yaml" )
type ConfigReaderName ¶
type ConfigReaderName string
ConfigReaderName represents the type of config reader.
const ( FileConfigReader ConfigReaderName = "file" ConsulConfigReader ConfigReaderName = "consul" ZookeeperConfigReader ConfigReaderName = "zookeeper" DatabaseConfigReader ConfigReaderName = "database" )
Click to show internal directories.
Click to hide internal directories.