Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCustomConfigPrefix ¶
NewCustomConfigPrefix returns a string which start with "SERVICE_CUSTOM"
Types ¶
type ServiceConfig ¶
type ServiceConfig struct { ServiceID string ServiceName string ServiceENV ServiceENV ServiceVersion string ServiceTags []string TraceHost string TracePort int LoggerNetwork string LoggerADDR string LoggerPriority syslog.Priority }
ServiceConfig is used to describe configs
func NewServiceConfig ¶
func NewServiceConfig() *ServiceConfig
NewServiceConfig returns a ServiceConfig
type ServiceENV ¶
type ServiceENV string
ServiceENV string
const ( // ServiceENVTesting used for testing env ServiceENVTesting ServiceENV = "testing" // ServiceENVDev used for dev env ServiceENVDev ServiceENV = "dev" // ServiceENVStaging used for staging env ServiceENVStaging ServiceENV = "staging" // ServiceENVProd used for prod env ServiceENVProd ServiceENV = "production" )
Click to show internal directories.
Click to hide internal directories.