bff_proxy_client

package
v0.96.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToMTProtoErrorCod added in v0.90.1

func ToMTProtoErrorCod(code codes.Code) codes.Code

Types

type BFFProxyClient

type BFFProxyClient struct {
	// zrpc.Client
	BFFClients map[string]zrpc.Client
}

func NewBFFProxyClients added in v0.86.0

func NewBFFProxyClients(cList []zrpc.RpcClientConf, idMap map[string]string) *BFFProxyClient

func (*BFFProxyClient) GetRpcClientByRequest

func (c *BFFProxyClient) GetRpcClientByRequest(t interface{}) (zrpc.Client, error)

func (*BFFProxyClient) Invoke

func (c *BFFProxyClient) Invoke(rpcMetaData *metadata.RpcMetadata, object mtproto.TLObject) (mtproto.TLObject, error)

func (*BFFProxyClient) InvokeContext added in v0.86.3

func (c *BFFProxyClient) InvokeContext(ctx context.Context, rpcMetaData *metadata.RpcMetadata, object mtproto.TLObject) (mtproto.TLObject, error)

InvokeContext 通用grpc转发器

func (*BFFProxyClient) TryReturnFakeRpcResult added in v0.86.2

func (c *BFFProxyClient) TryReturnFakeRpcResult(object mtproto.TLObject) (mtproto.TLObject, error)

Jump to

Keyboard shortcuts

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