1 Star 0 Fork 0

谈子文 / keyauth-tz

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
endpoint.pb.go 13.42 KB
一键复制 编辑 原始数据 按行查看 历史
谈子文 提交于 2023-10-26 01:10 . endpoint部分
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.1
// source: apps/endpoint/pb/endpoint.proto
package endpoint
import (
_ "gitee.com/talk-about-articles/keyauth-tz/common/page"
_ "gitee.com/talk-about-articles/keyauth-tz/common/request"
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 EndpointSet 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,omitempty"`
// 服务功能
//
// gotags: json:"endpoints" bson:"endpoints"
Endpoints []*Endpoint `protobuf:"bytes,2,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
}
func (x *EndpointSet) Reset() {
*x = EndpointSet{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_endpoint_pb_endpoint_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EndpointSet) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EndpointSet) ProtoMessage() {}
func (x *EndpointSet) 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 EndpointSet.ProtoReflect.Descriptor instead.
func (*EndpointSet) Descriptor() ([]byte, []int) {
return file_apps_endpoint_pb_endpoint_proto_rawDescGZIP(), []int{0}
}
func (x *EndpointSet) GetService() string {
if x != nil {
return x.Service
}
return ""
}
func (x *EndpointSet) GetEndpoints() []*Endpoint {
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,omitempty"`
}
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 Endpoint 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,omitempty"`
// 资源操作方法
//
// gotags: json:"action" bson:"action"
Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty"`
// 该接口的标签,该功能的标签,用于基于标签过滤
//
// gotags: json:"labels" bson:"labels"
Labels map[string]string `protobuf:"bytes,4,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// http协议的路由定义
//
// gotags: json:"path" bson:"path"
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
// http协议的路由请求方法
//
// gotags: json:"method" bson:"method"
Method string `protobuf:"bytes,6,opt,name=method,proto3" json:"method,omitempty"`
}
func (x *Endpoint) Reset() {
*x = Endpoint{}
if protoimpl.UnsafeEnabled {
mi := &file_apps_endpoint_pb_endpoint_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Endpoint) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Endpoint) ProtoMessage() {}
func (x *Endpoint) 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 Endpoint.ProtoReflect.Descriptor instead.
func (*Endpoint) Descriptor() ([]byte, []int) {
return file_apps_endpoint_pb_endpoint_proto_rawDescGZIP(), []int{2}
}
func (x *Endpoint) GetResource() string {
if x != nil {
return x.Resource
}
return ""
}
func (x *Endpoint) GetAction() string {
if x != nil {
return x.Action
}
return ""
}
func (x *Endpoint) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Endpoint) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *Endpoint) 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, 0x15, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e,
0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x1a, 0x3f, 0x67, 0x69, 0x74, 0x65, 0x65, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x61, 0x6c, 0x6b, 0x2d, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x2d, 0x61,
0x72, 0x74, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2d,
0x74, 0x7a, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x61, 0x67, 0x65, 0x2f, 0x70,
0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x45, 0x67, 0x69, 0x74, 0x65, 0x65,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x74, 0x61, 0x6c, 0x6b, 0x2d, 0x61, 0x62, 0x6f, 0x75, 0x74, 0x2d,
0x61, 0x72, 0x74, 0x69, 0x63, 0x6c, 0x65, 0x73, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68,
0x2d, 0x74, 0x7a, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x22, 0x66, 0x0a, 0x0b, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 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, 0x3d, 0x0a, 0x09, 0x65, 0x6e, 0x64,
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x6b,
0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x65, 0x6e, 0x64, 0x70,
0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 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, 0xea, 0x01, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f,
0x69, 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, 0x43, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c,
0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74,
0x68, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e,
0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 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, 0x66, 0x0a, 0x03, 0x52, 0x50, 0x43, 0x12, 0x5f, 0x0a, 0x10, 0x52, 0x65,
0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x22,
0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x70, 0x73, 0x2e, 0x65, 0x6e,
0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x53,
0x65, 0x74, 0x1a, 0x27, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x61, 0x70, 0x70,
0x73, 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, 0x0f, 0x5a, 0x0d, 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{}{
(*EndpointSet)(nil), // 0: keyauth.apps.endpoint.EndpointSet
(*RegistryResponse)(nil), // 1: keyauth.apps.endpoint.RegistryResponse
(*Endpoint)(nil), // 2: keyauth.apps.endpoint.Endpoint
nil, // 3: keyauth.apps.endpoint.Endpoint.LabelsEntry
}
var file_apps_endpoint_pb_endpoint_proto_depIdxs = []int32{
2, // 0: keyauth.apps.endpoint.EndpointSet.endpoints:type_name -> keyauth.apps.endpoint.Endpoint
3, // 1: keyauth.apps.endpoint.Endpoint.labels:type_name -> keyauth.apps.endpoint.Endpoint.LabelsEntry
0, // 2: keyauth.apps.endpoint.RPC.RegistryEndpoint:input_type -> keyauth.apps.endpoint.EndpointSet
1, // 3: keyauth.apps.endpoint.RPC.RegistryEndpoint:output_type -> keyauth.apps.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.(*EndpointSet); 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.(*Endpoint); 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
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/talk-about-articles/keyauth-tz.git
git@gitee.com:talk-about-articles/keyauth-tz.git
talk-about-articles
keyauth-tz
keyauth-tz
v1.0.19

搜索帮助

344bd9b3 5694891 D2dac590 5694891