client

package
v0.0.0-...-8d44b86 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultRPCPort 定义默认的RPC端口
	DefaultRPCPort = 50051
)

Variables

This section is empty.

Functions

func InitRPCClient

func InitRPCClient(cfg *RPCConfig)

InitRPCClient 初始化全局的RPC客户端

func PermissionClient

func PermissionClient() permission.PermissionClient

PermissionClient 权限客户端

Types

type RPCClient

type RPCClient struct {
	PermissionClient permission.PermissionClient
}

RPCClient RPC客户端

func NewRPCClient

func NewRPCClient(cfg *RPCConfig) (*RPCClient, error)

NewRPCClient 创建RPC客户端

type RPCConfig

type RPCConfig struct {
	Addr   string
	AppID  string
	AppKey string
}

RPCConfig RPC配置参数

Jump to

Keyboard shortcuts

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