config

package
v0.0.0-...-2004213 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 4 Imported by: 0

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

type ServerConfig struct {
	Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr    string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Timeout int64  `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
}

type Version

type Version string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL