Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentName ¶
type ComponentName string
type ComponentType ¶
type ComponentType string
type GrpcServerConfig ¶
type GrpcServerConfig ServerConfig
func NewGrpcServerConfig ¶
func NewGrpcServerConfig(client *clientv3.Client, componentName ComponentName) (*GrpcServerConfig, error)
type HttpServerConfig ¶
type HttpServerConfig ServerConfig
func NewHTTPServerConfig ¶
func NewHTTPServerConfig(client *clientv3.Client, componentName ComponentName) (*HttpServerConfig, error)
type ReidsConfig ¶
type ReidsConfig struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Db int64 `protobuf:"varint,4,opt,name=db,proto3" json:"db,omitempty"` ReadTimeout int64 `protobuf:"bytes,6,opt,name=read_timeout,json=readTimeout,proto3" json:"read_timeout,omitempty"` WriteTimeout int64 `protobuf:"bytes,7,opt,name=write_timeout,json=writeTimeout,proto3" json:"write_timeout,omitempty"` }
func NewRedisConfig ¶
func NewRedisConfig(client *clientv3.Client) (*ReidsConfig, error)
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.