cfgpltrpcpb

package
v0.0.127 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
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)

View Source
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.

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use GetReq.ProtoReflect.Descriptor instead.

func (*GetReq) GetCamp

func (x *GetReq) GetCamp() int32

func (*GetReq) GetKey

func (x *GetReq) GetKey() string

func (*GetReq) ProtoMessage

func (*GetReq) ProtoMessage()

func (*GetReq) ProtoReflect

func (x *GetReq) ProtoReflect() protoreflect.Message

func (*GetReq) Reset

func (x *GetReq) Reset()

func (*GetReq) String

func (x *GetReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use GetResp.ProtoReflect.Descriptor instead.

func (*GetResp) GetCamp

func (x *GetResp) GetCamp() int32

func (*GetResp) GetKey

func (x *GetResp) GetKey() string

func (*GetResp) GetValue

func (x *GetResp) GetValue() string

func (*GetResp) ProtoMessage

func (*GetResp) ProtoMessage()

func (*GetResp) ProtoReflect

func (x *GetResp) ProtoReflect() protoreflect.Message

func (*GetResp) Reset

func (x *GetResp) Reset()

func (*GetResp) String

func (x *GetResp) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use PushReq.ProtoReflect.Descriptor instead.

func (*PushReq) GetCamp

func (x *PushReq) GetCamp() int32

func (*PushReq) GetClientAddr added in v0.0.25

func (x *PushReq) GetClientAddr() string

func (*PushReq) GetEnv added in v0.0.26

func (x *PushReq) GetEnv() string

func (*PushReq) GetKey

func (x *PushReq) GetKey() string

func (*PushReq) GetValue

func (x *PushReq) GetValue() string

func (*PushReq) ProtoMessage

func (*PushReq) ProtoMessage()

func (*PushReq) ProtoReflect

func (x *PushReq) ProtoReflect() protoreflect.Message

func (*PushReq) Reset

func (x *PushReq) Reset()

func (*PushReq) String

func (x *PushReq) String() string

type PushResp

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

func (*PushResp) Descriptor deprecated

func (*PushResp) Descriptor() ([]byte, []int)

Deprecated: Use PushResp.ProtoReflect.Descriptor instead.

func (*PushResp) ProtoMessage

func (*PushResp) ProtoMessage()

func (*PushResp) ProtoReflect

func (x *PushResp) ProtoReflect() protoreflect.Message

func (*PushResp) Reset

func (x *PushResp) Reset()

func (*PushResp) String

func (x *PushResp) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use RegistReq.ProtoReflect.Descriptor instead.

func (*RegistReq) GetClientAddr

func (x *RegistReq) GetClientAddr() string

func (*RegistReq) GetEnv added in v0.0.26

func (x *RegistReq) GetEnv() string

func (*RegistReq) ProtoMessage

func (*RegistReq) ProtoMessage()

func (*RegistReq) ProtoReflect

func (x *RegistReq) ProtoReflect() protoreflect.Message

func (*RegistReq) Reset

func (x *RegistReq) Reset()

func (*RegistReq) String

func (x *RegistReq) String() string

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.

func (UnimplementedCfgpltClientRpcServer) Push

type UnimplementedCfgpltServiceRpcServer

type UnimplementedCfgpltServiceRpcServer struct {
}

UnimplementedCfgpltServiceRpcServer must be embedded to have forward compatible implementations.

func (UnimplementedCfgpltServiceRpcServer) Get

func (UnimplementedCfgpltServiceRpcServer) Regist

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.

Jump to

Keyboard shortcuts

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