rpc

package
v0.0.0-...-6a8978f Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadClientFromEnv

func LoadClientFromEnv() error

LoadClientFromEnv 从环境变量中生成客户端实例

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 需要认证, 需要配置client_id 和 client_secret 直接使用mcenter的config对象

func (*ClientSet) Operate

func (c *ClientSet) Operate() operate.RPCClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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