rpc

package
v0.0.0-...-f4276bb Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadClientFromEnv

func LoadClientFromEnv() error

从环境变量里面读取client配置, 并初始化一个全局的 mcenter client

Types

type Client

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

func C

func C() *Client

func NewClient

func NewClient(c conf.Grpc) *Client

func (*Client) Endpoint

func (c *Client) Endpoint() endpoint.RpcClient

endpoint 模块的rpc服务

func (*Client) Token

func (c *Client) Token() token.RpcClient

token 模块的rpc服务

Directories

Path Synopsis
middlewares

Jump to

Keyboard shortcuts

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