Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // GrpcEndpoint provider grpc endpoint GrpcEndpoint types.Endpoint `env:""` // HttpEndpoint provider http endpoint HttpEndpoint types.Endpoint `env:""` // ServiceName service name, default use env `PRJ_NAME` ServiceName string `env:""` // ServiceVersion service version, default use env `PRJ_VERSION` ServiceVersion string `env:""` // InstanceID the unique id of current service, default gen uuid when trace config init InstanceID string `env:""` // DebugMode if enable debug mode DebugMode datatypes.Bool `env:""` // TLS config for connecting provider Endpoint TLS *conftls.X509KeyPair // contains filtered or unexported fields }
func (*Config) SetDefault ¶
func (c *Config) SetDefault()
Click to show internal directories.
Click to hide internal directories.