rpc

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: Artistic-2.0 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 客户端

func C

func C() *ClientSet

C Global

func NewClient

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

NewClient todo 传注册中心的地址过去

func (*ClientSet) Book

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

Book服务的SDK

func (*ClientSet) Token

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

token服务的SDK

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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