client

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 14 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) Audit added in v0.0.9

func (c *ClientSet) Audit() audit.RPCClient

func (*ClientSet) Book

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

Book服务的SDK

func (*ClientSet) Endpoint added in v0.0.6

func (c *ClientSet) Endpoint() endpoint.RPCClient

Endpoint 服务SDK

func (*ClientSet) Policy added in v0.0.7

func (c *ClientSet) Policy() policy.RPCClient

func (*ClientSet) Role added in v0.0.7

func (c *ClientSet) Role() role.RPCClient

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