Documentation ¶
Index ¶
- Variables
- func RegisterCfgpltClientRpcServer(s grpc.ServiceRegistrar, srv CfgpltClientRpcServer)
- func RegisterCfgpltServiceRpcServer(s grpc.ServiceRegistrar, srv CfgpltServiceRpcServer)
- type CfgpltClientRpcClient
- type CfgpltClientRpcServer
- type CfgpltServiceRpcClient
- type CfgpltServiceRpcServer
- type GetReq
- type GetResp
- func (*GetResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetResp) GetCamp() int32
- func (x *GetResp) GetKey() string
- func (x *GetResp) GetValue() string
- func (*GetResp) ProtoMessage()
- func (x *GetResp) ProtoReflect() protoreflect.Message
- func (x *GetResp) Reset()
- func (x *GetResp) String() string
- type PushReq
- func (*PushReq) Descriptor() ([]byte, []int)deprecated
- func (x *PushReq) GetCamp() int32
- func (x *PushReq) GetClientAddr() string
- func (x *PushReq) GetEnv() string
- func (x *PushReq) GetKey() string
- func (x *PushReq) GetValue() string
- func (*PushReq) ProtoMessage()
- func (x *PushReq) ProtoReflect() protoreflect.Message
- func (x *PushReq) Reset()
- func (x *PushReq) String() string
- type PushResp
- type RegistReq
- type RegistResp
- type UnimplementedCfgpltClientRpcServer
- type UnimplementedCfgpltServiceRpcServer
- type UnsafeCfgpltClientRpcServer
- type UnsafeCfgpltServiceRpcServer
Constants ¶
This section is empty.
Variables ¶
var CfgpltClientRpc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cfgpltrpcpb.CfgpltClientRpc", HandlerType: (*CfgpltClientRpcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "push", Handler: _CfgpltClientRpc_Push_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cfgplt_rpc.proto", }
CfgpltClientRpc_ServiceDesc is the grpc.ServiceDesc for CfgpltClientRpc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var CfgpltServiceRpc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cfgpltrpcpb.CfgpltServiceRpc", HandlerType: (*CfgpltServiceRpcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "get", Handler: _CfgpltServiceRpc_Get_Handler, }, { MethodName: "regist", Handler: _CfgpltServiceRpc_Regist_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cfgplt_rpc.proto", }
CfgpltServiceRpc_ServiceDesc is the grpc.ServiceDesc for CfgpltServiceRpc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_cfgplt_rpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCfgpltClientRpcServer ¶
func RegisterCfgpltClientRpcServer(s grpc.ServiceRegistrar, srv CfgpltClientRpcServer)
func RegisterCfgpltServiceRpcServer ¶
func RegisterCfgpltServiceRpcServer(s grpc.ServiceRegistrar, srv CfgpltServiceRpcServer)
Types ¶
type CfgpltClientRpcClient ¶
type CfgpltClientRpcClient interface {
Push(ctx context.Context, in *PushReq, opts ...grpc.CallOption) (*PushResp, error)
}
CfgpltClientRpcClient is the client API for CfgpltClientRpc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCfgpltClientRpcClient ¶
func NewCfgpltClientRpcClient(cc grpc.ClientConnInterface) CfgpltClientRpcClient
type CfgpltClientRpcServer ¶
type CfgpltClientRpcServer interface { Push(context.Context, *PushReq) (*PushResp, error) // contains filtered or unexported methods }
CfgpltClientRpcServer is the server API for CfgpltClientRpc service. All implementations must embed UnimplementedCfgpltClientRpcServer for forward compatibility
type CfgpltServiceRpcClient ¶
type CfgpltServiceRpcClient interface { Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetResp, error) Regist(ctx context.Context, in *RegistReq, opts ...grpc.CallOption) (*RegistResp, error) }
CfgpltServiceRpcClient is the client API for CfgpltServiceRpc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCfgpltServiceRpcClient ¶
func NewCfgpltServiceRpcClient(cc grpc.ClientConnInterface) CfgpltServiceRpcClient
type CfgpltServiceRpcServer ¶
type CfgpltServiceRpcServer interface { Get(context.Context, *GetReq) (*GetResp, error) Regist(context.Context, *RegistReq) (*RegistResp, error) // contains filtered or unexported methods }
CfgpltServiceRpcServer is the server API for CfgpltServiceRpc service. All implementations must embed UnimplementedCfgpltServiceRpcServer for forward compatibility
type GetReq ¶
type GetReq struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Camp int32 `protobuf:"varint,2,opt,name=camp,proto3" json:"camp,omitempty"` //0 全部 1 帝国 2 同盟 // contains filtered or unexported fields }
客户端 => 中心 请求
func (*GetReq) Descriptor
deprecated
func (*GetReq) ProtoMessage ¶
func (*GetReq) ProtoMessage()
func (*GetReq) ProtoReflect ¶
func (x *GetReq) ProtoReflect() protoreflect.Message
type GetResp ¶
type GetResp struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Camp int32 `protobuf:"varint,2,opt,name=camp,proto3" json:"camp,omitempty"` //0 全部 1 帝国 2 同盟 Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GetResp) Descriptor
deprecated
func (*GetResp) ProtoMessage ¶
func (*GetResp) ProtoMessage()
func (*GetResp) ProtoReflect ¶
func (x *GetResp) ProtoReflect() protoreflect.Message
type PushReq ¶
type PushReq struct { ClientAddr string `protobuf:"bytes,1,opt,name=client_addr,json=clientAddr,proto3" json:"client_addr,omitempty"` Env string `protobuf:"bytes,2,opt,name=env,proto3" json:"env,omitempty"` Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` Camp int32 `protobuf:"varint,4,opt,name=camp,proto3" json:"camp,omitempty"` //0 全部 1 帝国 2 同盟 Value string `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
中心 => 客户端 推送
func (*PushReq) Descriptor
deprecated
func (*PushReq) GetClientAddr ¶ added in v0.0.25
func (*PushReq) ProtoMessage ¶
func (*PushReq) ProtoMessage()
func (*PushReq) ProtoReflect ¶
func (x *PushReq) ProtoReflect() protoreflect.Message
type PushResp ¶
type PushResp struct {
// contains filtered or unexported fields
}
func (*PushResp) Descriptor
deprecated
func (*PushResp) ProtoMessage ¶
func (*PushResp) ProtoMessage()
func (*PushResp) ProtoReflect ¶
func (x *PushResp) ProtoReflect() protoreflect.Message
type RegistReq ¶
type RegistReq struct { ClientAddr string `protobuf:"bytes,1,opt,name=client_addr,json=clientAddr,proto3" json:"client_addr,omitempty"` Env string `protobuf:"bytes,2,opt,name=env,proto3" json:"env,omitempty"` // contains filtered or unexported fields }
客户端 => 中心 心跳
func (*RegistReq) Descriptor
deprecated
func (*RegistReq) GetClientAddr ¶
func (*RegistReq) ProtoMessage ¶
func (*RegistReq) ProtoMessage()
func (*RegistReq) ProtoReflect ¶
func (x *RegistReq) ProtoReflect() protoreflect.Message
type RegistResp ¶
type RegistResp struct {
// contains filtered or unexported fields
}
func (*RegistResp) Descriptor
deprecated
func (*RegistResp) Descriptor() ([]byte, []int)
Deprecated: Use RegistResp.ProtoReflect.Descriptor instead.
func (*RegistResp) ProtoMessage ¶
func (*RegistResp) ProtoMessage()
func (*RegistResp) ProtoReflect ¶
func (x *RegistResp) ProtoReflect() protoreflect.Message
func (*RegistResp) Reset ¶
func (x *RegistResp) Reset()
func (*RegistResp) String ¶
func (x *RegistResp) String() string
type UnimplementedCfgpltClientRpcServer ¶
type UnimplementedCfgpltClientRpcServer struct { }
UnimplementedCfgpltClientRpcServer must be embedded to have forward compatible implementations.
type UnimplementedCfgpltServiceRpcServer ¶
type UnimplementedCfgpltServiceRpcServer struct { }
UnimplementedCfgpltServiceRpcServer must be embedded to have forward compatible implementations.
func (UnimplementedCfgpltServiceRpcServer) Regist ¶
func (UnimplementedCfgpltServiceRpcServer) Regist(context.Context, *RegistReq) (*RegistResp, error)
type UnsafeCfgpltClientRpcServer ¶
type UnsafeCfgpltClientRpcServer interface {
// contains filtered or unexported methods
}
UnsafeCfgpltClientRpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CfgpltClientRpcServer will result in compilation errors.
type UnsafeCfgpltServiceRpcServer ¶
type UnsafeCfgpltServiceRpcServer interface {
// contains filtered or unexported methods
}
UnsafeCfgpltServiceRpcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CfgpltServiceRpcServer will result in compilation errors.