client

package
v0.0.0-...-31e44ea Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserAgent

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

UserAgent etcd用户代理

func NewUserAgentClient

func NewUserAgentClient(addr []string, logger log.Logger) (*UserAgent, error)

NewUserAgentClient 创建用户代理

func (*UserAgent) NewGRPCClient

func (u *UserAgent) NewGRPCClient(conn *grpc.ClientConn) service.Service

func (*UserAgent) RequestLogin

func (u *UserAgent) RequestLogin(_ context.Context, request interface{}) (interface{}, error)

func (*UserAgent) ResponseLogin

func (u *UserAgent) ResponseLogin(_ context.Context, response interface{}) (interface{}, error)

func (*UserAgent) UserAgentClient

func (u *UserAgent) UserAgentClient() (service.Service, error)

UserAgentClient 用户代理客户端

Jump to

Keyboard shortcuts

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