client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Release

func Release(c *GrpcClient) error

Types

type EtcdMember

type EtcdMember struct {
	Name     string
	Ip       string
	Id       string
	IsLeader string
	IsHealth string
}

type GrpcClient

type GrpcClient struct {
	// contains filtered or unexported fields
}

func New

func New(ip string, port string) *GrpcClient

func (*GrpcClient) GrpcClientAddmember

func (c *GrpcClient) GrpcClientAddmember(name string, ip string)

func (*GrpcClient) GrpcClientListmember

func (c *GrpcClient) GrpcClientListmember() ([]*EtcdMember, error)

func (*GrpcClient) GrpcClientRemovemember

func (c *GrpcClient) GrpcClientRemovemember(id string) error

Jump to

Keyboard shortcuts

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