Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Conn *grpc.ClientConn
)
View Source
var OutTime time.Duration
View Source
var ServiceHostList map[string]string
Functions ¶
func ClientRegister ¶
func ServiceLocalList ¶
func ServiceLocalList() error
*@Author Administrator *@Date 23/4/2021 13:31 *@desc 获取当前本地注册服务列表
func ServiceRedisList ¶
func ServiceRedisList() error
*@Author Administrator *@Date 23/4/2021 13:40 *@desc
func ServiceRegister ¶
Types ¶
type GrpcHelper ¶
type GrpcHelper struct { Conn *grpc.ClientConn // contains filtered or unexported fields }
func (*GrpcHelper) ClientRegister ¶
func (h *GrpcHelper) ClientRegister(host, port string, fn ClientFn) error
func (GrpcHelper) NewGrpcHelper ¶
func (GrpcHelper) NewGrpcHelper() GrpcHelperInterface
func (*GrpcHelper) ServiceRegister ¶
func (h *GrpcHelper) ServiceRegister(host, port string, fn ServiceFn) (err error)
type GrpcHelperInterface ¶
type GrpcOprion ¶
type GrpcOprion struct { }
Click to show internal directories.
Click to hide internal directories.