5 Star 0 Fork 0

Md/gu

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cfgplt_rpc.pb.go 15.58 KB
一键复制 编辑 原始数据 按行查看 历史
liyafei 提交于 2023-02-24 10:57 . cfgplt 注册增加 env 参数
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.20.0
// source: cfgplt_rpc.proto
package cfgpltrpcpb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// 客户端 => 中心 请求
type GetReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
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 同盟
}
func (x *GetReq) Reset() {
*x = GetReq{}
if protoimpl.UnsafeEnabled {
mi := &file_cfgplt_rpc_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetReq) ProtoMessage() {}
func (x *GetReq) ProtoReflect() protoreflect.Message {
mi := &file_cfgplt_rpc_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetReq.ProtoReflect.Descriptor instead.
func (*GetReq) Descriptor() ([]byte, []int) {
return file_cfgplt_rpc_proto_rawDescGZIP(), []int{0}
}
func (x *GetReq) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *GetReq) GetCamp() int32 {
if x != nil {
return x.Camp
}
return 0
}
type GetResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
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"`
}
func (x *GetResp) Reset() {
*x = GetResp{}
if protoimpl.UnsafeEnabled {
mi := &file_cfgplt_rpc_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetResp) ProtoMessage() {}
func (x *GetResp) ProtoReflect() protoreflect.Message {
mi := &file_cfgplt_rpc_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetResp.ProtoReflect.Descriptor instead.
func (*GetResp) Descriptor() ([]byte, []int) {
return file_cfgplt_rpc_proto_rawDescGZIP(), []int{1}
}
func (x *GetResp) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *GetResp) GetCamp() int32 {
if x != nil {
return x.Camp
}
return 0
}
func (x *GetResp) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
// 客户端 => 中心 心跳
type RegistReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
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"`
}
func (x *RegistReq) Reset() {
*x = RegistReq{}
if protoimpl.UnsafeEnabled {
mi := &file_cfgplt_rpc_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RegistReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RegistReq) ProtoMessage() {}
func (x *RegistReq) ProtoReflect() protoreflect.Message {
mi := &file_cfgplt_rpc_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RegistReq.ProtoReflect.Descriptor instead.
func (*RegistReq) Descriptor() ([]byte, []int) {
return file_cfgplt_rpc_proto_rawDescGZIP(), []int{2}
}
func (x *RegistReq) GetClientAddr() string {
if x != nil {
return x.ClientAddr
}
return ""
}
func (x *RegistReq) GetEnv() string {
if x != nil {
return x.Env
}
return ""
}
type RegistResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *RegistResp) Reset() {
*x = RegistResp{}
if protoimpl.UnsafeEnabled {
mi := &file_cfgplt_rpc_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RegistResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RegistResp) ProtoMessage() {}
func (x *RegistResp) ProtoReflect() protoreflect.Message {
mi := &file_cfgplt_rpc_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RegistResp.ProtoReflect.Descriptor instead.
func (*RegistResp) Descriptor() ([]byte, []int) {
return file_cfgplt_rpc_proto_rawDescGZIP(), []int{3}
}
// 中心 => 客户端 推送
type PushReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
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"`
}
func (x *PushReq) Reset() {
*x = PushReq{}
if protoimpl.UnsafeEnabled {
mi := &file_cfgplt_rpc_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PushReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PushReq) ProtoMessage() {}
func (x *PushReq) ProtoReflect() protoreflect.Message {
mi := &file_cfgplt_rpc_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PushReq.ProtoReflect.Descriptor instead.
func (*PushReq) Descriptor() ([]byte, []int) {
return file_cfgplt_rpc_proto_rawDescGZIP(), []int{4}
}
func (x *PushReq) GetClientAddr() string {
if x != nil {
return x.ClientAddr
}
return ""
}
func (x *PushReq) GetEnv() string {
if x != nil {
return x.Env
}
return ""
}
func (x *PushReq) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *PushReq) GetCamp() int32 {
if x != nil {
return x.Camp
}
return 0
}
func (x *PushReq) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type PushResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *PushResp) Reset() {
*x = PushResp{}
if protoimpl.UnsafeEnabled {
mi := &file_cfgplt_rpc_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PushResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PushResp) ProtoMessage() {}
func (x *PushResp) ProtoReflect() protoreflect.Message {
mi := &file_cfgplt_rpc_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PushResp.ProtoReflect.Descriptor instead.
func (*PushResp) Descriptor() ([]byte, []int) {
return file_cfgplt_rpc_proto_rawDescGZIP(), []int{5}
}
var File_cfgplt_rpc_proto protoreflect.FileDescriptor
var file_cfgplt_rpc_proto_rawDesc = []byte{
0x0a, 0x10, 0x63, 0x66, 0x67, 0x70, 0x6c, 0x74, 0x5f, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x0b, 0x63, 0x66, 0x67, 0x70, 0x6c, 0x74, 0x72, 0x70, 0x63, 0x70, 0x62, 0x22,
0x2e, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x63,
0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x61, 0x6d, 0x70, 0x22,
0x45, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04,
0x63, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x61, 0x6d, 0x70,
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x3e, 0x0a, 0x09, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
0x52, 0x65, 0x71, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64,
0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
0x41, 0x64, 0x64, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x03, 0x65, 0x6e, 0x76, 0x22, 0x0c, 0x0a, 0x0a, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
0x52, 0x65, 0x73, 0x70, 0x22, 0x78, 0x0a, 0x07, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x12,
0x1f, 0x0a, 0x0b, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x41, 0x64, 0x64, 0x72,
0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x65,
0x6e, 0x76, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01,
0x28, 0x05, 0x52, 0x04, 0x63, 0x61, 0x6d, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x0a,
0x0a, 0x08, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x32, 0x7f, 0x0a, 0x10, 0x43, 0x66,
0x67, 0x70, 0x6c, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x70, 0x63, 0x12, 0x30,
0x0a, 0x03, 0x67, 0x65, 0x74, 0x12, 0x13, 0x2e, 0x63, 0x66, 0x67, 0x70, 0x6c, 0x74, 0x72, 0x70,
0x63, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x14, 0x2e, 0x63, 0x66, 0x67,
0x70, 0x6c, 0x74, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70,
0x12, 0x39, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x63, 0x66, 0x67,
0x70, 0x6c, 0x74, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x52,
0x65, 0x71, 0x1a, 0x17, 0x2e, 0x63, 0x66, 0x67, 0x70, 0x6c, 0x74, 0x72, 0x70, 0x63, 0x70, 0x62,
0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x32, 0x46, 0x0a, 0x0f, 0x43,
0x66, 0x67, 0x70, 0x6c, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x70, 0x63, 0x12, 0x33,
0x0a, 0x04, 0x70, 0x75, 0x73, 0x68, 0x12, 0x14, 0x2e, 0x63, 0x66, 0x67, 0x70, 0x6c, 0x74, 0x72,
0x70, 0x63, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x15, 0x2e, 0x63,
0x66, 0x67, 0x70, 0x6c, 0x74, 0x72, 0x70, 0x63, 0x70, 0x62, 0x2e, 0x50, 0x75, 0x73, 0x68, 0x52,
0x65, 0x73, 0x70, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x2f, 0x63, 0x66, 0x67, 0x70, 0x6c, 0x74, 0x72,
0x70, 0x63, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_cfgplt_rpc_proto_rawDescOnce sync.Once
file_cfgplt_rpc_proto_rawDescData = file_cfgplt_rpc_proto_rawDesc
)
func file_cfgplt_rpc_proto_rawDescGZIP() []byte {
file_cfgplt_rpc_proto_rawDescOnce.Do(func() {
file_cfgplt_rpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_cfgplt_rpc_proto_rawDescData)
})
return file_cfgplt_rpc_proto_rawDescData
}
var file_cfgplt_rpc_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_cfgplt_rpc_proto_goTypes = []interface{}{
(*GetReq)(nil), // 0: cfgpltrpcpb.GetReq
(*GetResp)(nil), // 1: cfgpltrpcpb.GetResp
(*RegistReq)(nil), // 2: cfgpltrpcpb.RegistReq
(*RegistResp)(nil), // 3: cfgpltrpcpb.RegistResp
(*PushReq)(nil), // 4: cfgpltrpcpb.PushReq
(*PushResp)(nil), // 5: cfgpltrpcpb.PushResp
}
var file_cfgplt_rpc_proto_depIdxs = []int32{
0, // 0: cfgpltrpcpb.CfgpltServiceRpc.get:input_type -> cfgpltrpcpb.GetReq
2, // 1: cfgpltrpcpb.CfgpltServiceRpc.regist:input_type -> cfgpltrpcpb.RegistReq
4, // 2: cfgpltrpcpb.CfgpltClientRpc.push:input_type -> cfgpltrpcpb.PushReq
1, // 3: cfgpltrpcpb.CfgpltServiceRpc.get:output_type -> cfgpltrpcpb.GetResp
3, // 4: cfgpltrpcpb.CfgpltServiceRpc.regist:output_type -> cfgpltrpcpb.RegistResp
5, // 5: cfgpltrpcpb.CfgpltClientRpc.push:output_type -> cfgpltrpcpb.PushResp
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_cfgplt_rpc_proto_init() }
func file_cfgplt_rpc_proto_init() {
if File_cfgplt_rpc_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_cfgplt_rpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cfgplt_rpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cfgplt_rpc_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegistReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cfgplt_rpc_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegistResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cfgplt_rpc_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PushReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_cfgplt_rpc_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PushResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_cfgplt_rpc_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 2,
},
GoTypes: file_cfgplt_rpc_proto_goTypes,
DependencyIndexes: file_cfgplt_rpc_proto_depIdxs,
MessageInfos: file_cfgplt_rpc_proto_msgTypes,
}.Build()
File_cfgplt_rpc_proto = out.File
file_cfgplt_rpc_proto_rawDesc = nil
file_cfgplt_rpc_proto_goTypes = nil
file_cfgplt_rpc_proto_depIdxs = nil
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/MikeDDD/gu.git
git@gitee.com:MikeDDD/gu.git
MikeDDD
gu
gu
v0.0.105

搜索帮助