Documentation ¶
Index ¶
- func ToMTProtoErrorCod(code codes.Code) codes.Code
- type BFFProxyClient
- func (c *BFFProxyClient) GetRpcClientByRequest(t interface{}) (zrpc.Client, error)
- func (c *BFFProxyClient) Invoke(rpcMetaData *metadata.RpcMetadata, object mtproto.TLObject) (mtproto.TLObject, error)
- func (c *BFFProxyClient) InvokeContext(ctx context.Context, rpcMetaData *metadata.RpcMetadata, ...) (mtproto.TLObject, error)
- func (c *BFFProxyClient) TryReturnFakeRpcResult(object mtproto.TLObject) (mtproto.TLObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BFFProxyClient ¶
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
Click to show internal directories.
Click to hide internal directories.