Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcClient ¶
type GrpcClient struct {
// contains filtered or unexported fields
}
func (*GrpcClient) InvokeAllRemoteRpc ¶
func (s *GrpcClient) InvokeAllRemoteRpc(addr []string, bytes []byte)
func (*GrpcClient) InvokeRemoteRpc ¶
func (s *GrpcClient) InvokeRemoteRpc(addr string, rpcInfo *protof.RpcInfo) []byte
type GrpcServer ¶
type GrpcServer struct { protof.RpcServiceServer // contains filtered or unexported fields }
func (*GrpcServer) CallbackResult ¶
func (s *GrpcServer) CallbackResult(f func(in *protof.RpcInfo) []byte)
func (*GrpcServer) InvokeRemoteFunc ¶
func (s *GrpcServer) InvokeRemoteFunc(ctx context.Context, in *protof.RpcInfo) (*protof.RpcInfo, error)
InvokeRemoteFunc 此处由Grpc客户端调用
func (*GrpcServer) ListenAddr ¶
func (s *GrpcServer) ListenAddr(addr string)
Click to show internal directories.
Click to hide internal directories.