Documentation ¶
Index ¶
Constants ¶
View Source
const ( RUN_MODE_LOCAL = "local" RUN_MODE_CONTAINER = "container" RUN_MODE_K8S = "k8s" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServiceName string `yaml:"service_name"` RunMode string // dev test prod MaxProc int ServerTick xtime.Duration OnlineTick xtime.Duration LogPath string Env *Env Discovery *DiscoveryConf RPCServer *RPCServer HTTPServer *HTTPServer Kafka *Kafka Redis *Redis Regions map[string][]string Zipkin *zipkinConf MetricsServer struct { Addr string } `yaml:"metrics_server"` }
Config .
type DiscoveryConf ¶
type DiscoveryConf struct {
Addr string
}
type HTTPServer ¶
type HTTPServer struct { Network string Addr string ReadTimeout xtime.Duration WriteTimeout xtime.Duration }
HTTPServer is http server config.
Click to show internal directories.
Click to hide internal directories.