Documentation ¶
Index ¶
- Variables
- func HttpEntry() *http.EntrySet
- func RegisterTagServiceServer(s grpc.ServiceRegistrar, srv TagServiceServer)
- type CreateTagRequest
- func (*CreateTagRequest) Descriptor() ([]byte, []int)deprecated
- func (req *CreateTagRequest) GenUUID() string
- func (x *CreateTagRequest) GetHttpFromOption() *HTTPFromOption
- func (x *CreateTagRequest) GetKeyDesc() string
- func (x *CreateTagRequest) GetKeyLabel() string
- func (x *CreateTagRequest) GetKeyName() string
- func (x *CreateTagRequest) GetNamespace() string
- func (x *CreateTagRequest) GetScopeType() ScopeType
- func (x *CreateTagRequest) GetValueFrom() ValueFrom
- func (x *CreateTagRequest) GetValues() []*ValueOption
- func (*CreateTagRequest) ProtoMessage()
- func (x *CreateTagRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTagRequest) Reset()
- func (x *CreateTagRequest) String() string
- func (req *CreateTagRequest) Validate() error
- type DeleteTagRequest
- type DescribeTagRequest
- func (*DescribeTagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeTagRequest) GetTagId() string
- func (*DescribeTagRequest) ProtoMessage()
- func (x *DescribeTagRequest) ProtoReflect() protoreflect.Message
- func (x *DescribeTagRequest) Reset()
- func (x *DescribeTagRequest) String() string
- func (req *DescribeTagRequest) Validate() error
- type HTTPFromOption
- func (*HTTPFromOption) Descriptor() ([]byte, []int)deprecated
- func (x *HTTPFromOption) GetDescKey() string
- func (x *HTTPFromOption) GetHeaders() map[string]string
- func (x *HTTPFromOption) GetLabelKey() string
- func (x *HTTPFromOption) GetSearchKey() string
- func (x *HTTPFromOption) GetUrl() string
- func (x *HTTPFromOption) GetValueKey() string
- func (*HTTPFromOption) ProtoMessage()
- func (x *HTTPFromOption) ProtoReflect() protoreflect.Message
- func (x *HTTPFromOption) Reset()
- func (x *HTTPFromOption) String() string
- type QueryTagKeyRequest
- func (*QueryTagKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTagKeyRequest) GetKeywords() string
- func (x *QueryTagKeyRequest) GetPage() *page.PageRequest
- func (x *QueryTagKeyRequest) GetScopeType() ScopeType
- func (*QueryTagKeyRequest) ProtoMessage()
- func (x *QueryTagKeyRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTagKeyRequest) Reset()
- func (x *QueryTagKeyRequest) String() string
- func (req *QueryTagKeyRequest) Validate() error
- type QueryTagValueRequest
- func (*QueryTagValueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTagValueRequest) GetPage() *page.PageRequest
- func (x *QueryTagValueRequest) GetTagId() string
- func (*QueryTagValueRequest) ProtoMessage()
- func (x *QueryTagValueRequest) ProtoReflect() protoreflect.Message
- func (x *QueryTagValueRequest) Reset()
- func (x *QueryTagValueRequest) String() string
- func (req *QueryTagValueRequest) Validate() error
- type ScopeType
- func (ScopeType) Descriptor() protoreflect.EnumDescriptor
- func (x ScopeType) Enum() *ScopeType
- func (ScopeType) EnumDescriptor() ([]byte, []int)deprecated
- func (t ScopeType) Equal(target ScopeType) bool
- func (t ScopeType) IsIn(targets ...ScopeType) bool
- func (t ScopeType) MarshalJSON() ([]byte, error)
- func (x ScopeType) Number() protoreflect.EnumNumber
- func (x ScopeType) String() string
- func (ScopeType) Type() protoreflect.EnumType
- func (t *ScopeType) UnmarshalJSON(b []byte) error
- type TagKey
- func (*TagKey) Descriptor() ([]byte, []int)deprecated
- func (x *TagKey) GetCreateAt() int64
- func (x *TagKey) GetCreater() string
- func (x *TagKey) GetDomain() string
- func (x *TagKey) GetHttpFromOption() *HTTPFromOption
- func (x *TagKey) GetId() string
- func (x *TagKey) GetKeyDesc() string
- func (x *TagKey) GetKeyLabel() string
- func (x *TagKey) GetKeyName() string
- func (x *TagKey) GetNamespace() string
- func (x *TagKey) GetScopeType() ScopeType
- func (x *TagKey) GetUpdateAt() int64
- func (x *TagKey) GetValueFrom() ValueFrom
- func (x *TagKey) GetValues() []*TagValue
- func (*TagKey) ProtoMessage()
- func (x *TagKey) ProtoReflect() protoreflect.Message
- func (x *TagKey) Reset()
- func (x *TagKey) String() string
- type TagKeySet
- func (s *TagKeySet) Add(item *TagKey)
- func (*TagKeySet) Descriptor() ([]byte, []int)deprecated
- func (x *TagKeySet) GetItems() []*TagKey
- func (x *TagKeySet) GetTotal() int64
- func (*TagKeySet) ProtoMessage()
- func (x *TagKeySet) ProtoReflect() protoreflect.Message
- func (x *TagKeySet) Reset()
- func (x *TagKeySet) String() string
- type TagServiceClient
- type TagServiceServer
- type TagValue
- func (*TagValue) Descriptor() ([]byte, []int)deprecated
- func (x *TagValue) GetCreateAt() int64
- func (x *TagValue) GetCreater() string
- func (x *TagValue) GetId() string
- func (x *TagValue) GetKeyId() string
- func (x *TagValue) GetUpdateAt() int64
- func (x *TagValue) GetValue() *ValueOption
- func (*TagValue) ProtoMessage()
- func (x *TagValue) ProtoReflect() protoreflect.Message
- func (x *TagValue) Reset()
- func (x *TagValue) String() string
- type TagValueSet
- func (s *TagValueSet) Add(item *TagValue)
- func (*TagValueSet) Descriptor() ([]byte, []int)deprecated
- func (x *TagValueSet) GetItems() []*TagValue
- func (x *TagValueSet) GetTotal() int64
- func (*TagValueSet) ProtoMessage()
- func (x *TagValueSet) ProtoReflect() protoreflect.Message
- func (x *TagValueSet) Reset()
- func (x *TagValueSet) String() string
- type UnimplementedTagServiceServer
- func (UnimplementedTagServiceServer) CreateTag(context.Context, *CreateTagRequest) (*TagKey, error)
- func (UnimplementedTagServiceServer) DeleteTag(context.Context, *DeleteTagRequest) (*TagKey, error)
- func (UnimplementedTagServiceServer) DescribeTag(context.Context, *DescribeTagRequest) (*TagKey, error)
- func (UnimplementedTagServiceServer) QueryTagKey(context.Context, *QueryTagKeyRequest) (*TagKeySet, error)
- func (UnimplementedTagServiceServer) QueryTagValue(context.Context, *QueryTagValueRequest) (*TagValueSet, error)
- type UnsafeTagServiceServer
- type ValueFrom
- func (ValueFrom) Descriptor() protoreflect.EnumDescriptor
- func (x ValueFrom) Enum() *ValueFrom
- func (ValueFrom) EnumDescriptor() ([]byte, []int)deprecated
- func (t ValueFrom) Equal(target ValueFrom) bool
- func (t ValueFrom) IsIn(targets ...ValueFrom) bool
- func (t ValueFrom) MarshalJSON() ([]byte, error)
- func (x ValueFrom) Number() protoreflect.EnumNumber
- func (x ValueFrom) String() string
- func (ValueFrom) Type() protoreflect.EnumType
- func (t *ValueFrom) UnmarshalJSON(b []byte) error
- type ValueOption
- func (*ValueOption) Descriptor() ([]byte, []int)deprecated
- func (x *ValueOption) GetDesc() string
- func (x *ValueOption) GetLabel() string
- func (x *ValueOption) GetValue() string
- func (*ValueOption) ProtoMessage()
- func (x *ValueOption) ProtoReflect() protoreflect.Message
- func (x *ValueOption) Reset()
- func (x *ValueOption) String() string
Constants ¶
This section is empty.
Variables ¶
var ( ScopeType_name = map[int32]string{ 0: "NAMESPACE", 1: "DOMAIN", 2: "GLOBAL", } ScopeType_value = map[string]int32{ "NAMESPACE": 0, "DOMAIN": 1, "GLOBAL": 2, } )
Enum value maps for ScopeType.
var ( ValueFrom_name = map[int32]string{ 0: "MANUAL", 1: "HTTP", } ValueFrom_value = map[string]int32{ "MANUAL": 0, "HTTP": 1, } )
Enum value maps for ValueFrom.
var File_pkg_tag_pb_enum_proto protoreflect.FileDescriptor
var File_pkg_tag_pb_request_proto protoreflect.FileDescriptor
var File_pkg_tag_pb_service_proto protoreflect.FileDescriptor
var File_pkg_tag_pb_tag_proto protoreflect.FileDescriptor
var TagService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "keyauth.tag.TagService", HandlerType: (*TagServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateTag", Handler: _TagService_CreateTag_Handler, }, { MethodName: "DescribeTag", Handler: _TagService_DescribeTag_Handler, }, { MethodName: "DeleteTag", Handler: _TagService_DeleteTag_Handler, }, { MethodName: "QueryTagKey", Handler: _TagService_QueryTagKey_Handler, }, { MethodName: "QueryTagValue", Handler: _TagService_QueryTagValue_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/tag/pb/service.proto", }
TagService_ServiceDesc is the grpc.ServiceDesc for TagService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTagServiceServer ¶
func RegisterTagServiceServer(s grpc.ServiceRegistrar, srv TagServiceServer)
Types ¶
type CreateTagRequest ¶
type CreateTagRequest struct { // tag生效范围 ScopeType ScopeType `protobuf:"varint,1,opt,name=scope_type,json=scopeType,proto3,enum=keyauth.tag.ScopeType" json:"scope_type"` // tag属于哪个namespace Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace"` // 建名称 KeyName string `protobuf:"bytes,3,opt,name=key_name,json=keyName,proto3" json:"key_name" validate:"lte=200"` // 建标识 KeyLabel string `protobuf:"bytes,4,opt,name=key_label,json=keyLabel,proto3" json:"key_label"` // 建描述 KeyDesc string `protobuf:"bytes,5,opt,name=key_desc,json=keyDesc,proto3" json:"key_desc"` // 值来源 ValueFrom ValueFrom `protobuf:"varint,6,opt,name=value_from,json=valueFrom,proto3,enum=keyauth.tag.ValueFrom" json:"value_from"` // http 获取Tag 值的参数 HttpFromOption *HTTPFromOption `protobuf:"bytes,7,opt,name=http_from_option,json=httpFromOption,proto3" json:"http_from_option"` // String 类型的值 Values []*ValueOption `protobuf:"bytes,8,rep,name=values,proto3" json:"values"` // contains filtered or unexported fields }
CreateTagRequest todo
func (*CreateTagRequest) Descriptor
deprecated
func (*CreateTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTagRequest.ProtoReflect.Descriptor instead.
func (*CreateTagRequest) GenUUID ¶
func (req *CreateTagRequest) GenUUID() string
func (*CreateTagRequest) GetHttpFromOption ¶
func (x *CreateTagRequest) GetHttpFromOption() *HTTPFromOption
func (*CreateTagRequest) GetKeyDesc ¶
func (x *CreateTagRequest) GetKeyDesc() string
func (*CreateTagRequest) GetKeyLabel ¶
func (x *CreateTagRequest) GetKeyLabel() string
func (*CreateTagRequest) GetKeyName ¶
func (x *CreateTagRequest) GetKeyName() string
func (*CreateTagRequest) GetNamespace ¶
func (x *CreateTagRequest) GetNamespace() string
func (*CreateTagRequest) GetScopeType ¶
func (x *CreateTagRequest) GetScopeType() ScopeType
func (*CreateTagRequest) GetValueFrom ¶
func (x *CreateTagRequest) GetValueFrom() ValueFrom
func (*CreateTagRequest) GetValues ¶
func (x *CreateTagRequest) GetValues() []*ValueOption
func (*CreateTagRequest) ProtoMessage ¶
func (*CreateTagRequest) ProtoMessage()
func (*CreateTagRequest) ProtoReflect ¶
func (x *CreateTagRequest) ProtoReflect() protoreflect.Message
func (*CreateTagRequest) Reset ¶
func (x *CreateTagRequest) Reset()
func (*CreateTagRequest) String ¶
func (x *CreateTagRequest) String() string
func (*CreateTagRequest) Validate ¶
func (req *CreateTagRequest) Validate() error
type DeleteTagRequest ¶
type DeleteTagRequest struct { // Tag Value ID TagId string `protobuf:"bytes,2,opt,name=tag_id,json=tagId,proto3" json:"tag_id" validate:"lte=200"` // contains filtered or unexported fields }
DeleteTagRequest todo
func NewDeleteTagRequestWithID ¶
func NewDeleteTagRequestWithID(id string) *DeleteTagRequest
NewDeleteTagRequestWithID todo
func (*DeleteTagRequest) Descriptor
deprecated
func (*DeleteTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTagRequest.ProtoReflect.Descriptor instead.
func (*DeleteTagRequest) GetTagId ¶
func (x *DeleteTagRequest) GetTagId() string
func (*DeleteTagRequest) ProtoMessage ¶
func (*DeleteTagRequest) ProtoMessage()
func (*DeleteTagRequest) ProtoReflect ¶
func (x *DeleteTagRequest) ProtoReflect() protoreflect.Message
func (*DeleteTagRequest) Reset ¶
func (x *DeleteTagRequest) Reset()
func (*DeleteTagRequest) String ¶
func (x *DeleteTagRequest) String() string
type DescribeTagRequest ¶
type DescribeTagRequest struct { // Tag Value ID TagId string `protobuf:"bytes,2,opt,name=tag_id,json=tagId,proto3" json:"tag_id" validate:"lte=200"` // contains filtered or unexported fields }
func NewDescribeTagRequestWithID ¶
func NewDescribeTagRequestWithID(id string) *DescribeTagRequest
NewDescribeTagRequestWithID todo
func (*DescribeTagRequest) Descriptor
deprecated
func (*DescribeTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use DescribeTagRequest.ProtoReflect.Descriptor instead.
func (*DescribeTagRequest) GetTagId ¶
func (x *DescribeTagRequest) GetTagId() string
func (*DescribeTagRequest) ProtoMessage ¶
func (*DescribeTagRequest) ProtoMessage()
func (*DescribeTagRequest) ProtoReflect ¶
func (x *DescribeTagRequest) ProtoReflect() protoreflect.Message
func (*DescribeTagRequest) Reset ¶
func (x *DescribeTagRequest) Reset()
func (*DescribeTagRequest) String ¶
func (x *DescribeTagRequest) String() string
func (*DescribeTagRequest) Validate ¶
func (req *DescribeTagRequest) Validate() error
type HTTPFromOption ¶
type HTTPFromOption struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url" bson:"url"` Headers map[string]string `` /* 160-byte string literal not displayed */ SearchKey string `protobuf:"bytes,3,opt,name=search_key,json=searchKey,proto3" json:"search_key" bson:"search_key"` ValueKey string `protobuf:"bytes,4,opt,name=value_key,json=valueKey,proto3" json:"value_key" bson:"value_key"` LabelKey string `protobuf:"bytes,5,opt,name=label_key,json=labelKey,proto3" json:"label_key" bson:"label_key"` DescKey string `protobuf:"bytes,6,opt,name=desc_key,json=descKey,proto3" json:"desc_key" bson:"desc_key"` // contains filtered or unexported fields }
HTTPFromOptions todo
func (*HTTPFromOption) Descriptor
deprecated
func (*HTTPFromOption) Descriptor() ([]byte, []int)
Deprecated: Use HTTPFromOption.ProtoReflect.Descriptor instead.
func (*HTTPFromOption) GetDescKey ¶
func (x *HTTPFromOption) GetDescKey() string
func (*HTTPFromOption) GetHeaders ¶
func (x *HTTPFromOption) GetHeaders() map[string]string
func (*HTTPFromOption) GetLabelKey ¶
func (x *HTTPFromOption) GetLabelKey() string
func (*HTTPFromOption) GetSearchKey ¶
func (x *HTTPFromOption) GetSearchKey() string
func (*HTTPFromOption) GetUrl ¶
func (x *HTTPFromOption) GetUrl() string
func (*HTTPFromOption) GetValueKey ¶
func (x *HTTPFromOption) GetValueKey() string
func (*HTTPFromOption) ProtoMessage ¶
func (*HTTPFromOption) ProtoMessage()
func (*HTTPFromOption) ProtoReflect ¶
func (x *HTTPFromOption) ProtoReflect() protoreflect.Message
func (*HTTPFromOption) Reset ¶
func (x *HTTPFromOption) Reset()
func (*HTTPFromOption) String ¶
func (x *HTTPFromOption) String() string
type QueryTagKeyRequest ¶
type QueryTagKeyRequest struct { Page *page.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"` // tag生效范围 ScopeType ScopeType `protobuf:"varint,2,opt,name=scope_type,json=scopeType,proto3,enum=keyauth.tag.ScopeType" json:"scope_type"` // 关键字 Keywords string `protobuf:"bytes,3,opt,name=keywords,proto3" json:"keywords"` // contains filtered or unexported fields }
QueryTagKeyRequest todo
func NewQueryTagKeyRequest ¶
func NewQueryTagKeyRequest(pageReq *request.PageRequest) *QueryTagKeyRequest
NewQueryRoleRequest 列表查询请求
func NewQueryTageKeyRequestFromHTTP ¶
func NewQueryTageKeyRequestFromHTTP(r *http.Request) *QueryTagKeyRequest
NewQueryTageKeyRequestFromHTTP 列表查询请求
func (*QueryTagKeyRequest) Descriptor
deprecated
func (*QueryTagKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryTagKeyRequest.ProtoReflect.Descriptor instead.
func (*QueryTagKeyRequest) GetKeywords ¶
func (x *QueryTagKeyRequest) GetKeywords() string
func (*QueryTagKeyRequest) GetPage ¶
func (x *QueryTagKeyRequest) GetPage() *page.PageRequest
func (*QueryTagKeyRequest) GetScopeType ¶
func (x *QueryTagKeyRequest) GetScopeType() ScopeType
func (*QueryTagKeyRequest) ProtoMessage ¶
func (*QueryTagKeyRequest) ProtoMessage()
func (*QueryTagKeyRequest) ProtoReflect ¶
func (x *QueryTagKeyRequest) ProtoReflect() protoreflect.Message
func (*QueryTagKeyRequest) Reset ¶
func (x *QueryTagKeyRequest) Reset()
func (*QueryTagKeyRequest) String ¶
func (x *QueryTagKeyRequest) String() string
func (*QueryTagKeyRequest) Validate ¶
func (req *QueryTagKeyRequest) Validate() error
type QueryTagValueRequest ¶
type QueryTagValueRequest struct { Page *page.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"` // Tag Value ID TagId string `protobuf:"bytes,2,opt,name=tag_id,json=tagId,proto3" json:"tag_id"` // contains filtered or unexported fields }
QueryTagValueRequest todo
func NewQueryTagValueRequest ¶
func NewQueryTagValueRequest(pageReq *request.PageRequest) *QueryTagValueRequest
NewQueryTagValueRequest 列表查询请求
func NewQueryTageValueRequestFromHTTP ¶
func NewQueryTageValueRequestFromHTTP(r *http.Request) *QueryTagValueRequest
NewQueryTageValueRequestFromHTTP 列表查询请求
func (*QueryTagValueRequest) Descriptor
deprecated
func (*QueryTagValueRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryTagValueRequest.ProtoReflect.Descriptor instead.
func (*QueryTagValueRequest) GetPage ¶
func (x *QueryTagValueRequest) GetPage() *page.PageRequest
func (*QueryTagValueRequest) GetTagId ¶
func (x *QueryTagValueRequest) GetTagId() string
func (*QueryTagValueRequest) ProtoMessage ¶
func (*QueryTagValueRequest) ProtoMessage()
func (*QueryTagValueRequest) ProtoReflect ¶
func (x *QueryTagValueRequest) ProtoReflect() protoreflect.Message
func (*QueryTagValueRequest) Reset ¶
func (x *QueryTagValueRequest) Reset()
func (*QueryTagValueRequest) String ¶
func (x *QueryTagValueRequest) String() string
func (*QueryTagValueRequest) Validate ¶
func (req *QueryTagValueRequest) Validate() error
type ScopeType ¶
type ScopeType int32
func ParseScopeTypeFromString ¶
ParseScopeTypeFromString Parse ScopeType from string
func (ScopeType) Descriptor ¶
func (ScopeType) Descriptor() protoreflect.EnumDescriptor
func (ScopeType) EnumDescriptor
deprecated
func (ScopeType) Number ¶
func (x ScopeType) Number() protoreflect.EnumNumber
func (ScopeType) Type ¶
func (ScopeType) Type() protoreflect.EnumType
func (*ScopeType) UnmarshalJSON ¶
UnmarshalJSON todo
type TagKey ¶
type TagKey struct { // Tag ID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` // 创建时间` CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"` // 更新时间 UpdateAt int64 `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at" bson:"update_at"` // Tag所属的域 Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain" bson:"domain"` // 创建人 Creater string `protobuf:"bytes,5,opt,name=creater,proto3" json:"creater" bson:"creater"` // tag生效范围 ScopeType ScopeType `protobuf:"varint,6,opt,name=scope_type,json=scopeType,proto3,enum=keyauth.tag.ScopeType" json:"scope_type" bson:"scope_type"` // tag属于哪个namespace Namespace string `protobuf:"bytes,7,opt,name=namespace,proto3" json:"namespace" bson:"namespace"` // 建名称 KeyName string `protobuf:"bytes,8,opt,name=key_name,json=keyName,proto3" json:"key_name" bson:"key_name"` // 建标识 KeyLabel string `protobuf:"bytes,9,opt,name=key_label,json=keyLabel,proto3" json:"key_label" bson:"key_label"` // 建描述 KeyDesc string `protobuf:"bytes,10,opt,name=key_desc,json=keyDesc,proto3" json:"key_desc" bson:"key_desc"` // 值来源 ValueFrom ValueFrom `protobuf:"varint,11,opt,name=value_from,json=valueFrom,proto3,enum=keyauth.tag.ValueFrom" json:"value_from" bson:"value_from"` // http 获取Tag 值的参数 HttpFromOption *HTTPFromOption `` /* 130-byte string literal not displayed */ Values []*TagValue `protobuf:"bytes,13,rep,name=values,proto3" json:"values,omitempty" bson:"-"` // contains filtered or unexported fields }
Tag is 标签
func NewDefaultTagKey ¶
func NewDefaultTagKey() *TagKey
func (*TagKey) Descriptor
deprecated
func (*TagKey) GetCreateAt ¶
func (*TagKey) GetCreater ¶
func (*TagKey) GetHttpFromOption ¶
func (x *TagKey) GetHttpFromOption() *HTTPFromOption
func (*TagKey) GetKeyDesc ¶
func (*TagKey) GetKeyLabel ¶
func (*TagKey) GetKeyName ¶
func (*TagKey) GetNamespace ¶
func (*TagKey) GetScopeType ¶
func (*TagKey) GetUpdateAt ¶
func (*TagKey) GetValueFrom ¶
func (*TagKey) ProtoMessage ¶
func (*TagKey) ProtoMessage()
func (*TagKey) ProtoReflect ¶
func (x *TagKey) ProtoReflect() protoreflect.Message
type TagKeySet ¶
type TagKeySet struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"` Items []*TagKey `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"` // contains filtered or unexported fields }
func (*TagKeySet) Descriptor
deprecated
func (*TagKeySet) ProtoMessage ¶
func (*TagKeySet) ProtoMessage()
func (*TagKeySet) ProtoReflect ¶
func (x *TagKeySet) ProtoReflect() protoreflect.Message
type TagServiceClient ¶
type TagServiceClient interface { CreateTag(ctx context.Context, in *CreateTagRequest, opts ...grpc.CallOption) (*TagKey, error) DescribeTag(ctx context.Context, in *DescribeTagRequest, opts ...grpc.CallOption) (*TagKey, error) DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*TagKey, error) QueryTagKey(ctx context.Context, in *QueryTagKeyRequest, opts ...grpc.CallOption) (*TagKeySet, error) QueryTagValue(ctx context.Context, in *QueryTagValueRequest, opts ...grpc.CallOption) (*TagValueSet, error) }
TagServiceClient is the client API for TagService 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 NewTagServiceClient ¶
func NewTagServiceClient(cc grpc.ClientConnInterface) TagServiceClient
type TagServiceServer ¶
type TagServiceServer interface { CreateTag(context.Context, *CreateTagRequest) (*TagKey, error) DescribeTag(context.Context, *DescribeTagRequest) (*TagKey, error) DeleteTag(context.Context, *DeleteTagRequest) (*TagKey, error) QueryTagKey(context.Context, *QueryTagKeyRequest) (*TagKeySet, error) QueryTagValue(context.Context, *QueryTagValueRequest) (*TagValueSet, error) // contains filtered or unexported methods }
TagServiceServer is the server API for TagService service. All implementations must embed UnimplementedTagServiceServer for forward compatibility
type TagValue ¶
type TagValue struct { // Tag Value ID Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` // 创建时间` CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"` // 更新时间 UpdateAt int64 `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at" bson:"update_at"` // 创建人 Creater string `protobuf:"bytes,4,opt,name=creater,proto3" json:"creater" bson:"creater"` // 关联的Tag key KeyId string `protobuf:"bytes,5,opt,name=key_id,json=keyId,proto3" json:"key_id" bson:"key_id"` // String 类型的值 Value *ValueOption `protobuf:"bytes,6,opt,name=value,proto3" json:"value" bson:"value"` // contains filtered or unexported fields }
func NewDefaultTagValue ¶
func NewDefaultTagValue() *TagValue
func (*TagValue) Descriptor
deprecated
func (*TagValue) GetCreateAt ¶
func (*TagValue) GetCreater ¶
func (*TagValue) GetUpdateAt ¶
func (*TagValue) GetValue ¶
func (x *TagValue) GetValue() *ValueOption
func (*TagValue) ProtoMessage ¶
func (*TagValue) ProtoMessage()
func (*TagValue) ProtoReflect ¶
func (x *TagValue) ProtoReflect() protoreflect.Message
type TagValueSet ¶
type TagValueSet struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"` Items []*TagValue `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"` // contains filtered or unexported fields }
func (*TagValueSet) Descriptor
deprecated
func (*TagValueSet) Descriptor() ([]byte, []int)
Deprecated: Use TagValueSet.ProtoReflect.Descriptor instead.
func (*TagValueSet) GetItems ¶
func (x *TagValueSet) GetItems() []*TagValue
func (*TagValueSet) GetTotal ¶
func (x *TagValueSet) GetTotal() int64
func (*TagValueSet) ProtoMessage ¶
func (*TagValueSet) ProtoMessage()
func (*TagValueSet) ProtoReflect ¶
func (x *TagValueSet) ProtoReflect() protoreflect.Message
func (*TagValueSet) Reset ¶
func (x *TagValueSet) Reset()
func (*TagValueSet) String ¶
func (x *TagValueSet) String() string
type UnimplementedTagServiceServer ¶
type UnimplementedTagServiceServer struct { }
UnimplementedTagServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTagServiceServer) CreateTag ¶
func (UnimplementedTagServiceServer) CreateTag(context.Context, *CreateTagRequest) (*TagKey, error)
func (UnimplementedTagServiceServer) DeleteTag ¶
func (UnimplementedTagServiceServer) DeleteTag(context.Context, *DeleteTagRequest) (*TagKey, error)
func (UnimplementedTagServiceServer) DescribeTag ¶
func (UnimplementedTagServiceServer) DescribeTag(context.Context, *DescribeTagRequest) (*TagKey, error)
func (UnimplementedTagServiceServer) QueryTagKey ¶
func (UnimplementedTagServiceServer) QueryTagKey(context.Context, *QueryTagKeyRequest) (*TagKeySet, error)
func (UnimplementedTagServiceServer) QueryTagValue ¶
func (UnimplementedTagServiceServer) QueryTagValue(context.Context, *QueryTagValueRequest) (*TagValueSet, error)
type UnsafeTagServiceServer ¶
type UnsafeTagServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTagServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TagServiceServer will result in compilation errors.
type ValueFrom ¶
type ValueFrom int32
ValueFrom 值来源
func ParseValueFromFromString ¶
ParseValueFromFromString Parse ValueFrom from string
func (ValueFrom) Descriptor ¶
func (ValueFrom) Descriptor() protoreflect.EnumDescriptor
func (ValueFrom) EnumDescriptor
deprecated
func (ValueFrom) Number ¶
func (x ValueFrom) Number() protoreflect.EnumNumber
func (ValueFrom) Type ¶
func (ValueFrom) Type() protoreflect.EnumType
func (*ValueFrom) UnmarshalJSON ¶
UnmarshalJSON todo
type ValueOption ¶
type ValueOption struct { Value string `protobuf:"bytes,1,opt,name=Value,proto3" json:"value" bson:"value" validate:"lte=200"` Label string `protobuf:"bytes,2,opt,name=Label,proto3" json:"label" bson:"label"` Desc string `protobuf:"bytes,3,opt,name=Desc,proto3" json:"desc" bson:"desc"` // contains filtered or unexported fields }
ValueOptions 值描述
func (*ValueOption) Descriptor
deprecated
func (*ValueOption) Descriptor() ([]byte, []int)
Deprecated: Use ValueOption.ProtoReflect.Descriptor instead.
func (*ValueOption) GetDesc ¶
func (x *ValueOption) GetDesc() string
func (*ValueOption) GetLabel ¶
func (x *ValueOption) GetLabel() string
func (*ValueOption) GetValue ¶
func (x *ValueOption) GetValue() string
func (*ValueOption) ProtoMessage ¶
func (*ValueOption) ProtoMessage()
func (*ValueOption) ProtoReflect ¶
func (x *ValueOption) ProtoReflect() protoreflect.Message
func (*ValueOption) Reset ¶
func (x *ValueOption) Reset()
func (*ValueOption) String ¶
func (x *ValueOption) String() string