1 Star 0 Fork 0

lollipop-xyz/g7-keyauth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
endpoint.pb.go 12.59 KB
一键复制 编辑 原始数据 按行查看 历史
xy 提交于 2022-11-09 14:30 . add endpoint
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.1
// protoc v3.19.1
// source: apps/endpoint/pb/endpoint.proto
package endpoint
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 EndpiontSet struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 服务名称
// @gotags: json:"service" bson:"service"
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service" bson:"service"`
// 服务功能
// @gotags: json:"endpoints" bson:"endpoints"
Endpoints []*Endpiont `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints" bson:"endpoints"`
}
func (x *EndpiontSet) Reset() {
*x = EndpiontSet{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_endpoint_pb_endpoint_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EndpiontSet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EndpiontSet) ProtoMessage() {}
func (x *EndpiontSet) ProtoReflect() protoreflect.Message {
mi := &file_apps_endpoint_pb_endpoint_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 EndpiontSet.ProtoReflect.Descriptor instead.
func (*EndpiontSet) Descriptor() ([]byte, []int) {
return file_apps_endpoint_pb_endpoint_proto_rawDescGZIP(), []int{0}
}
func (x *EndpiontSet) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *EndpiontSet) GetEndpoints() []*Endpiont {
if x != nil {
return x.Endpoints
}
return nil
}
type RegistryResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 注册返回
// @gotags: json:"message" bson:"message"
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message" bson:"message"`
}
func (x *RegistryResponse) Reset() {
*x = RegistryResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_endpoint_pb_endpoint_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RegistryResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RegistryResponse) ProtoMessage() {}
func (x *RegistryResponse) ProtoReflect() protoreflect.Message {
mi := &file_apps_endpoint_pb_endpoint_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 RegistryResponse.ProtoReflect.Descriptor instead.
func (*RegistryResponse) Descriptor() ([]byte, []int) {
return file_apps_endpoint_pb_endpoint_proto_rawDescGZIP(), []int{1}
}
func (x *RegistryResponse) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
// 服务功能
type Endpiont struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 资源名称, 路由装饰定义
// @gotags: json:"resource" bson:"resource"
Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource" bson:"resource"`
// 资源操作方法
// @gotags: json:"action" bson:"action"
Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action" bson:"action"`
// 该接口的标签, 该功能的标签
// @gotags: json:"labels" bson:"labels"
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" bson:"labels"`
// HTTP 路由定义
// @gotags: json:"path" bson:"path"
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path" bson:"path"`
// HTTP 路由定义
// @gotags: json:"method" bson:"method"
Method string `protobuf:"bytes,6,opt,name=method,proto3" json:"method" bson:"method"`
}
func (x *Endpiont) Reset() {
*x = Endpiont{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_endpoint_pb_endpoint_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Endpiont) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Endpiont) ProtoMessage() {}
func (x *Endpiont) ProtoReflect() protoreflect.Message {
mi := &file_apps_endpoint_pb_endpoint_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 Endpiont.ProtoReflect.Descriptor instead.
func (*Endpiont) Descriptor() ([]byte, []int) {
return file_apps_endpoint_pb_endpoint_proto_rawDescGZIP(), []int{2}
}
func (x *Endpiont) GetResource() string {
if x != nil {
return x.Resource
}
return ""
}
func (x *Endpiont) GetAction() string {
if x != nil {
return x.Action
}
return ""
}
func (x *Endpiont) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Endpiont) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *Endpiont) GetMethod() string {
if x != nil {
return x.Method
}
return ""
}
var File_apps_endpoint_pb_endpoint_proto protoreflect.FileDescriptor
var file_apps_endpoint_pb_endpoint_proto_rawDesc = []byte{
0x0a, 0x1f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2f,
0x70, 0x62, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x13, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x65, 0x6e,
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x22, 0x64, 0x0a, 0x0b, 0x45, 0x6e, 0x64, 0x70, 0x69, 0x6f,
0x6e, 0x74, 0x53, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
0x3b, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e,
0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x69, 0x6f, 0x6e,
0x74, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x22, 0x2c, 0x0a, 0x10,
0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xe8, 0x01, 0x0a, 0x08, 0x45,
0x6e, 0x64, 0x70, 0x69, 0x6f, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75,
0x72, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x41, 0x0a, 0x06, 0x6c,
0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6b, 0x65,
0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e,
0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x69, 0x6f, 0x6e, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c,
0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x12,
0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61,
0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x06, 0x20, 0x01,
0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61,
0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x3a, 0x02, 0x38, 0x01, 0x32, 0x62, 0x0a, 0x03, 0x52, 0x50, 0x43, 0x12, 0x5b, 0x0a, 0x10,
0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74,
0x12, 0x20, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e, 0x65, 0x6e,
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x69, 0x6f, 0x6e, 0x74, 0x53,
0x65, 0x74, 0x1a, 0x25, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x67, 0x37, 0x2e,
0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x31, 0x5a, 0x2f, 0x67, 0x69, 0x74,
0x65, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x6f, 0x6c, 0x6c, 0x69, 0x70, 0x6f, 0x70, 0x2d,
0x78, 0x79, 0x7a, 0x2f, 0x67, 0x37, 0x2d, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61,
0x70, 0x70, 0x73, 0x2f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
file_apps_endpoint_pb_endpoint_proto_rawDescOnce sync.Once
file_apps_endpoint_pb_endpoint_proto_rawDescData = file_apps_endpoint_pb_endpoint_proto_rawDesc
)
func file_apps_endpoint_pb_endpoint_proto_rawDescGZIP() []byte {
file_apps_endpoint_pb_endpoint_proto_rawDescOnce.Do(func() {
file_apps_endpoint_pb_endpoint_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_endpoint_pb_endpoint_proto_rawDescData)
})
return file_apps_endpoint_pb_endpoint_proto_rawDescData
}
var file_apps_endpoint_pb_endpoint_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_apps_endpoint_pb_endpoint_proto_goTypes = []interface{}{
(*EndpiontSet)(nil), // 0: keyauth_g7.endpoint.EndpiontSet
(*RegistryResponse)(nil), // 1: keyauth_g7.endpoint.RegistryResponse
(*Endpiont)(nil), // 2: keyauth_g7.endpoint.Endpiont
nil, // 3: keyauth_g7.endpoint.Endpiont.LabelsEntry
}
var file_apps_endpoint_pb_endpoint_proto_depIdxs = []int32{
2, // 0: keyauth_g7.endpoint.EndpiontSet.endpoints:type_name -> keyauth_g7.endpoint.Endpiont
3, // 1: keyauth_g7.endpoint.Endpiont.labels:type_name -> keyauth_g7.endpoint.Endpiont.LabelsEntry
0, // 2: keyauth_g7.endpoint.RPC.RegistryEndpoint:input_type -> keyauth_g7.endpoint.EndpiontSet
1, // 3: keyauth_g7.endpoint.RPC.RegistryEndpoint:output_type -> keyauth_g7.endpoint.RegistryResponse
3, // [3:4] is the sub-list for method output_type
2, // [2:3] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_apps_endpoint_pb_endpoint_proto_init() }
func file_apps_endpoint_pb_endpoint_proto_init() {
if File_apps_endpoint_pb_endpoint_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_apps_endpoint_pb_endpoint_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*EndpiontSet); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_endpoint_pb_endpoint_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegistryResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_apps_endpoint_pb_endpoint_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Endpiont); 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_apps_endpoint_pb_endpoint_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_apps_endpoint_pb_endpoint_proto_goTypes,
DependencyIndexes: file_apps_endpoint_pb_endpoint_proto_depIdxs,
MessageInfos: file_apps_endpoint_pb_endpoint_proto_msgTypes,
}.Build()
File_apps_endpoint_pb_endpoint_proto = out.File
file_apps_endpoint_pb_endpoint_proto_rawDesc = nil
file_apps_endpoint_pb_endpoint_proto_goTypes = nil
file_apps_endpoint_pb_endpoint_proto_depIdxs = nil
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lollipop-xyz/g7-keyauth.git
git@gitee.com:lollipop-xyz/g7-keyauth.git
lollipop-xyz
g7-keyauth
g7-keyauth
v0.0.4

搜索帮助