Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiConf ¶
type ApiConf struct { ServiceConf `mapstructure:",squash"` Addr string `json:"Addr,default=:8080"` Mode string `json:"Mode,default=release"` Timeout int64 `json:"Timeout,default=60"` }
type GrpcConf ¶ added in v1.1.2
type GrpcConf struct { Addr string `json:"Addr,default=localhost:8081"` Mode string `json:",default=pro,options=dev|test|rt|pre|pro"` MetricsUrl string `json:",optional"` // Deprecated: please use DevServer Prometheus prometheus.Config `json:",optional"` Telemetry trace.Config `json:",optional"` Auth bool `json:",optional"` Timeout int64 `json:",default=2000"` CpuThreshold int64 `json:",default=900,range=[0:1000]"` // grpc health check switch Health bool `json:",default=true"` Middlewares zrpc.ServerMiddlewaresConf }
type Option ¶
type Option func(opt *options)
Option defines the method to customize the config options.
Click to show internal directories.
Click to hide internal directories.