Documentation ¶
Index ¶
- func GetGrpcBalancer(servicePrefix string, methodName string) (lb.Balancer, bool)
- func InitialKitGrpc(etcdConfig *ETCD3Config, servicePrefix, methodName string, f sd.Factory)
- func NewClient(etcdConfig *ETCD3Config) (etcdv3.Client, error)
- func RPC(servicePrefix string, methodName string, req interface{}) (interface{}, error)
- func RegisterService(etcdConfig *ETCD3Config, servicePrefix string, instance string)
- type ETCD3Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGrpcBalancer ¶
GetGrpcBalancer get fitted balancer for use
func InitialKitGrpc ¶
func InitialKitGrpc(etcdConfig *ETCD3Config, servicePrefix, methodName string, f sd.Factory)
InitialKitGrpc initial a grpc method in client side for using later
func NewClient ¶
func NewClient(etcdConfig *ETCD3Config) (etcdv3.Client, error)
NewClient is a new func for Client
func RegisterService ¶
func RegisterService(etcdConfig *ETCD3Config, servicePrefix string, instance string)
RegisterService is a func that register the service in etcd
Types ¶
Click to show internal directories.
Click to hide internal directories.