client

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetGlobal

func SetGlobal(cli *ClientSet)

SetGlobal todo

Types

type ClientSet

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

Client 客户端:包括所有的client

func C

func C() *ClientSet

C Global

func NewClient

func NewClient(conf *rpc.Config) (*ClientSet, error)

NewClient todo 传递注册中心的地址,在client里面传入

func (*ClientSet) Book

func (c *ClientSet) Book() book.ServiceClient

Book服务的SDK

func (*ClientSet) Token

func (c *ClientSet) Token() token.ServiceClient

Token 的客户端的SDK。在中间件传输过程中,只使用了token.ServiceClient,我们从所有的client去除token的client

Directories

Path Synopsis
rpc

Jump to

Keyboard shortcuts

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