Documentation ¶
Index ¶
- Constants
- Variables
- func HttpEntry() *http.EntrySet
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddItemToGroupRequest
- func (*AddItemToGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddItemToGroupRequest) GetAccount() string
- func (x *AddItemToGroupRequest) GetGroupName() string
- func (x *AddItemToGroupRequest) GetItems() []*ItemRequest
- func (*AddItemToGroupRequest) ProtoMessage()
- func (x *AddItemToGroupRequest) ProtoReflect() protoreflect.Message
- func (x *AddItemToGroupRequest) Reset()
- func (x *AddItemToGroupRequest) String() string
- type CreateGroupRequest
- func (*CreateGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGroupRequest) GetCreater() string
- func (x *CreateGroupRequest) GetDescription() string
- func (x *CreateGroupRequest) GetName() string
- func (x *CreateGroupRequest) GetType() Type
- func (*CreateGroupRequest) ProtoMessage()
- func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message
- func (x *CreateGroupRequest) Reset()
- func (x *CreateGroupRequest) String() string
- func (req *CreateGroupRequest) Validate() error
- type DeleteGroupRequest
- func (*DeleteGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteGroupRequest) GetName() string
- func (*DeleteGroupRequest) ProtoMessage()
- func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteGroupRequest) Reset()
- func (x *DeleteGroupRequest) String() string
- func (req *DeleteGroupRequest) Validate() error
- type DescribeGroupRequest
- func (*DescribeGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DescribeGroupRequest) GetName() string
- func (*DescribeGroupRequest) ProtoMessage()
- func (x *DescribeGroupRequest) ProtoReflect() protoreflect.Message
- func (x *DescribeGroupRequest) Reset()
- func (x *DescribeGroupRequest) String() string
- func (req *DescribeGroupRequest) Validate() error
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetCreateAt() int64
- func (x *Group) GetCreater() string
- func (x *Group) GetDescription() string
- func (x *Group) GetName() string
- func (x *Group) GetType() Type
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type GroupSet
- func (s *GroupSet) Add(e *Group)
- func (*GroupSet) Descriptor() ([]byte, []int)deprecated
- func (x *GroupSet) GetItems() []*Group
- func (x *GroupSet) GetTotal() int64
- func (*GroupSet) ProtoMessage()
- func (x *GroupSet) ProtoReflect() protoreflect.Message
- func (x *GroupSet) Reset()
- func (x *GroupSet) String() string
- type Item
- func (*Item) Descriptor() ([]byte, []int)deprecated
- func (x *Item) GetCreateAt() int64
- func (x *Item) GetCreater() string
- func (x *Item) GetDescription() string
- func (x *Item) GetGroup() string
- func (x *Item) GetId() string
- func (x *Item) GetKey() string
- func (x *Item) GetUpdateAt() int64
- func (x *Item) GetUpdater() int64
- func (x *Item) GetValue() string
- func (*Item) ProtoMessage()
- func (x *Item) ProtoReflect() protoreflect.Message
- func (x *Item) Reset()
- func (x *Item) String() string
- type ItemRequest
- func (*ItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ItemRequest) GetDescription() string
- func (x *ItemRequest) GetGroup() string
- func (x *ItemRequest) GetKey() string
- func (x *ItemRequest) GetValue() string
- func (*ItemRequest) ProtoMessage()
- func (x *ItemRequest) ProtoReflect() protoreflect.Message
- func (x *ItemRequest) Reset()
- func (x *ItemRequest) String() string
- type ItemSet
- func (s *ItemSet) Add(e *Item)
- func (*ItemSet) Descriptor() ([]byte, []int)deprecated
- func (s *ItemSet) Docs() []interface{}
- func (x *ItemSet) GetItems() []*Item
- func (x *ItemSet) GetTotal() int64
- func (*ItemSet) ProtoMessage()
- func (x *ItemSet) ProtoReflect() protoreflect.Message
- func (x *ItemSet) Reset()
- func (x *ItemSet) String() string
- type QueryGroupRequest
- func (*QueryGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryGroupRequest) GetPage() *request.PageRequest
- func (x *QueryGroupRequest) GetType() Type
- func (*QueryGroupRequest) ProtoMessage()
- func (x *QueryGroupRequest) ProtoReflect() protoreflect.Message
- func (x *QueryGroupRequest) Reset()
- func (x *QueryGroupRequest) String() string
- type QueryItemRequest
- func (*QueryItemRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryItemRequest) GetGroupName() string
- func (x *QueryItemRequest) GetPage() *request.PageRequest
- func (*QueryItemRequest) ProtoMessage()
- func (x *QueryItemRequest) ProtoReflect() protoreflect.Message
- func (x *QueryItemRequest) Reset()
- func (x *QueryItemRequest) String() string
- type RemoveItemFromGroupRequest
- func (*RemoveItemFromGroupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveItemFromGroupRequest) GetGroupName() string
- func (x *RemoveItemFromGroupRequest) GetItems() []string
- func (x *RemoveItemFromGroupRequest) GetRemoveAll() bool
- func (*RemoveItemFromGroupRequest) ProtoMessage()
- func (x *RemoveItemFromGroupRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveItemFromGroupRequest) Reset()
- func (x *RemoveItemFromGroupRequest) String() string
- type ServiceClient
- type ServiceServer
- type Type
- func (Type) Descriptor() protoreflect.EnumDescriptor
- func (x Type) Enum() *Type
- func (Type) EnumDescriptor() ([]byte, []int)deprecated
- func (t Type) Equal(target Type) bool
- func (t Type) IsIn(targets ...Type) bool
- func (t Type) MarshalJSON() ([]byte, error)
- func (x Type) Number() protoreflect.EnumNumber
- func (x Type) String() string
- func (Type) Type() protoreflect.EnumType
- func (t *Type) UnmarshalJSON(b []byte) error
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddItemToGroup(context.Context, *AddItemToGroupRequest) (*ItemSet, error)
- func (UnimplementedServiceServer) CreateGroup(context.Context, *CreateGroupRequest) (*Group, error)
- func (UnimplementedServiceServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*Group, error)
- func (UnimplementedServiceServer) QueryGroup(context.Context, *QueryGroupRequest) (*GroupSet, error)
- func (UnimplementedServiceServer) QueryItem(context.Context, *QueryItemRequest) (*ItemSet, error)
- func (UnimplementedServiceServer) RemoveItemFromGroup(context.Context, *RemoveItemFromGroupRequest) (*ItemSet, error)
- type UnsafeServiceServer
Constants ¶
const (
AppName = "mconf"
)
Variables ¶
var ( Type_name = map[int32]string{ 0: "GLOBAL", 1: "PRIVATE", } Type_value = map[string]int32{ "GLOBAL": 0, "PRIVATE": 1, } )
Enum value maps for Type.
var File_apps_mconf_pb_conf_proto protoreflect.FileDescriptor
var File_apps_mconf_pb_enum_proto protoreflect.FileDescriptor
var File_apps_mconf_pb_request_proto protoreflect.FileDescriptor
var File_apps_mconf_pb_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "infraboard.keyauth.mconf.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateGroup", Handler: _Service_CreateGroup_Handler, }, { MethodName: "QueryGroup", Handler: _Service_QueryGroup_Handler, }, { MethodName: "DeleteGroup", Handler: _Service_DeleteGroup_Handler, }, { MethodName: "QueryItem", Handler: _Service_QueryItem_Handler, }, { MethodName: "AddItemToGroup", Handler: _Service_AddItemToGroup_Handler, }, { MethodName: "RemoveItemFromGroup", Handler: _Service_RemoveItemFromGroup_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "apps/mconf/pb/service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AddItemToGroupRequest ¶
type AddItemToGroupRequest struct { // @gotags: json:"account" Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account"` // @gotags: json:"group_name" GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name"` // @gotags: bson:"items" json:"items" Items []*ItemRequest `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"` // contains filtered or unexported fields }
AddItemToGroupRequest todo
func NewAddItemToGroupRequest ¶
func NewAddItemToGroupRequest() *AddItemToGroupRequest
NewAddItemToGroupRequest todo
func (*AddItemToGroupRequest) Descriptor
deprecated
func (*AddItemToGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddItemToGroupRequest.ProtoReflect.Descriptor instead.
func (*AddItemToGroupRequest) GetAccount ¶
func (x *AddItemToGroupRequest) GetAccount() string
func (*AddItemToGroupRequest) GetGroupName ¶
func (x *AddItemToGroupRequest) GetGroupName() string
func (*AddItemToGroupRequest) GetItems ¶
func (x *AddItemToGroupRequest) GetItems() []*ItemRequest
func (*AddItemToGroupRequest) ProtoMessage ¶
func (*AddItemToGroupRequest) ProtoMessage()
func (*AddItemToGroupRequest) ProtoReflect ¶
func (x *AddItemToGroupRequest) ProtoReflect() protoreflect.Message
func (*AddItemToGroupRequest) Reset ¶
func (x *AddItemToGroupRequest) Reset()
func (*AddItemToGroupRequest) String ¶
func (x *AddItemToGroupRequest) String() string
type CreateGroupRequest ¶
type CreateGroupRequest struct { // 组类型 // @gotags: json:"type" Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=infraboard.keyauth.mconf.Type" json:"type"` // 名称 // @gotags: json:"name" validate:"required,lte=200" Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" validate:"required,lte=200"` // 描述信息 // @gotags: json:"description,omitempty" Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // 创建人 // @gotags: bson:"creater" json:"creater" Creater string `protobuf:"bytes,4,opt,name=creater,proto3" json:"creater" bson:"creater"` // contains filtered or unexported fields }
CreateGroupRequest 服务组请求
func NewCreateGroupRequest ¶
func NewCreateGroupRequest() *CreateGroupRequest
NewCreateGroupRequest todo
func (*CreateGroupRequest) Descriptor
deprecated
func (*CreateGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.
func (*CreateGroupRequest) GetCreater ¶
func (x *CreateGroupRequest) GetCreater() string
func (*CreateGroupRequest) GetDescription ¶
func (x *CreateGroupRequest) GetDescription() string
func (*CreateGroupRequest) GetName ¶
func (x *CreateGroupRequest) GetName() string
func (*CreateGroupRequest) GetType ¶
func (x *CreateGroupRequest) GetType() Type
func (*CreateGroupRequest) ProtoMessage ¶
func (*CreateGroupRequest) ProtoMessage()
func (*CreateGroupRequest) ProtoReflect ¶
func (x *CreateGroupRequest) ProtoReflect() protoreflect.Message
func (*CreateGroupRequest) Reset ¶
func (x *CreateGroupRequest) Reset()
func (*CreateGroupRequest) String ¶
func (x *CreateGroupRequest) String() string
func (*CreateGroupRequest) Validate ¶
func (req *CreateGroupRequest) Validate() error
type DeleteGroupRequest ¶
type DeleteGroupRequest struct { // @gotags: json:"name" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` // contains filtered or unexported fields }
DeleteGroupRequest todo
func NewDeleteGroupRequestWithName ¶
func NewDeleteGroupRequestWithName(name string) *DeleteGroupRequest
func (*DeleteGroupRequest) Descriptor
deprecated
func (*DeleteGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead.
func (*DeleteGroupRequest) GetName ¶
func (x *DeleteGroupRequest) GetName() string
func (*DeleteGroupRequest) ProtoMessage ¶
func (*DeleteGroupRequest) ProtoMessage()
func (*DeleteGroupRequest) ProtoReflect ¶
func (x *DeleteGroupRequest) ProtoReflect() protoreflect.Message
func (*DeleteGroupRequest) Reset ¶
func (x *DeleteGroupRequest) Reset()
func (*DeleteGroupRequest) String ¶
func (x *DeleteGroupRequest) String() string
func (*DeleteGroupRequest) Validate ¶
func (req *DeleteGroupRequest) Validate() error
type DescribeGroupRequest ¶
type DescribeGroupRequest struct { // @gotags: json:"name" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name"` // contains filtered or unexported fields }
DescribeGroupRequest todo
func NewDescribeGroupRequestWithName ¶
func NewDescribeGroupRequestWithName(name string) *DescribeGroupRequest
func (*DescribeGroupRequest) Descriptor
deprecated
func (*DescribeGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use DescribeGroupRequest.ProtoReflect.Descriptor instead.
func (*DescribeGroupRequest) GetName ¶
func (x *DescribeGroupRequest) GetName() string
func (*DescribeGroupRequest) ProtoMessage ¶
func (*DescribeGroupRequest) ProtoMessage()
func (*DescribeGroupRequest) ProtoReflect ¶
func (x *DescribeGroupRequest) ProtoReflect() protoreflect.Message
func (*DescribeGroupRequest) Reset ¶
func (x *DescribeGroupRequest) Reset()
func (*DescribeGroupRequest) String ¶
func (x *DescribeGroupRequest) String() string
func (*DescribeGroupRequest) Validate ¶
func (req *DescribeGroupRequest) Validate() error
type Group ¶
type Group struct { // 组名称 // @gotags: bson:"_id" json:"name" Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" bson:"_id"` // 组类型 // @gotags: bson:"type" json:"type" Type Type `protobuf:"varint,2,opt,name=type,proto3,enum=infraboard.keyauth.mconf.Type" json:"type" bson:"type"` // 创建人 // @gotags: bson:"creater" json:"creater" Creater string `protobuf:"bytes,3,opt,name=creater,proto3" json:"creater" bson:"creater"` // 创建的时间 // @gotags: bson:"create_at" json:"create_at" CreateAt int64 `protobuf:"varint,4,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"` // 描述信息 // @gotags: bson:"description" json:"description" Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description" bson:"description"` // contains filtered or unexported fields }
Micro is service provider
func (*Group) Descriptor
deprecated
func (*Group) GetCreateAt ¶
func (*Group) GetCreater ¶
func (*Group) GetDescription ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type GroupSet ¶
type GroupSet struct { // @gotags: bson:"total" json:"total" Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"` // @gotags: bson:"items" json:"items" Items []*Group `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"` // contains filtered or unexported fields }
func (*GroupSet) Descriptor
deprecated
func (*GroupSet) ProtoMessage ¶
func (*GroupSet) ProtoMessage()
func (*GroupSet) ProtoReflect ¶
func (x *GroupSet) ProtoReflect() protoreflect.Message
type Item ¶
type Item struct { // 项ID // @gotags: bson:"_id" json:"id" Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` // 建的名称 // @gotags: bson:"key" json:"key" Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key" bson:"key"` // 关联的组 // @gotags: bson:"group" json:"group" Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group" bson:"group"` // 创建人 // @gotags: bson:"creater" json:"creater" Creater string `protobuf:"bytes,4,opt,name=creater,proto3" json:"creater" bson:"creater"` // 创建的时间 // @gotags: bson:"create_at" json:"create_at" CreateAt int64 `protobuf:"varint,5,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"` // 创建的时间 // @gotags: bson:"updater" json:"updater,omitempty" Updater int64 `protobuf:"varint,6,opt,name=updater,proto3" json:"updater,omitempty" bson:"updater"` // 更新时间 // @gotags: bson:"update_at" json:"update_at,omitempty" UpdateAt int64 `protobuf:"varint,7,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty" bson:"update_at"` // 值对应的值 // @gotags: bson:"value" json:"value" Value string `protobuf:"bytes,8,opt,name=value,proto3" json:"value" bson:"value"` // 描述信息 // @gotags: bson:"description" json:"description,omitempty" Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty" bson:"description"` // contains filtered or unexported fields }
Item 健值项
func NewItem ¶
func NewItem(creater string, req *ItemRequest) *Item
func (*Item) Descriptor
deprecated
func (*Item) GetCreateAt ¶
func (*Item) GetCreater ¶
func (*Item) GetDescription ¶
func (*Item) GetUpdateAt ¶
func (*Item) GetUpdater ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) ProtoReflect ¶
func (x *Item) ProtoReflect() protoreflect.Message
type ItemRequest ¶
type ItemRequest struct { // 建的名称 // @gotags: bson:"_id" json:"key" Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key" bson:"_id"` // 关联的组 // @gotags: bson:"group" json:"group" Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group" bson:"group"` // 值对应的值 // @gotags: bson:"value" json:"value" Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value" bson:"value"` // 描述信息 // @gotags: bson:"description" json:"description,omitempty" Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty" bson:"description"` // contains filtered or unexported fields }
ItemRequest 健值项
func (*ItemRequest) Descriptor
deprecated
func (*ItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use ItemRequest.ProtoReflect.Descriptor instead.
func (*ItemRequest) GetDescription ¶
func (x *ItemRequest) GetDescription() string
func (*ItemRequest) GetGroup ¶
func (x *ItemRequest) GetGroup() string
func (*ItemRequest) GetKey ¶
func (x *ItemRequest) GetKey() string
func (*ItemRequest) GetValue ¶
func (x *ItemRequest) GetValue() string
func (*ItemRequest) ProtoMessage ¶
func (*ItemRequest) ProtoMessage()
func (*ItemRequest) ProtoReflect ¶
func (x *ItemRequest) ProtoReflect() protoreflect.Message
func (*ItemRequest) Reset ¶
func (x *ItemRequest) Reset()
func (*ItemRequest) String ¶
func (x *ItemRequest) String() string
type ItemSet ¶
type ItemSet struct { // @gotags: bson:"total" json:"total" Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"` // @gotags: bson:"items" json:"items" Items []*Item `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"` // contains filtered or unexported fields }
func NewGroupItemSet ¶
func NewGroupItemSet(creater string, req *AddItemToGroupRequest) *ItemSet
func (*ItemSet) Descriptor
deprecated
func (*ItemSet) ProtoMessage ¶
func (*ItemSet) ProtoMessage()
func (*ItemSet) ProtoReflect ¶
func (x *ItemSet) ProtoReflect() protoreflect.Message
type QueryGroupRequest ¶
type QueryGroupRequest struct { // @gotags: json:"page" Page *request.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"` // 组类型 // @gotags: json:"type" Type Type `protobuf:"varint,2,opt,name=type,proto3,enum=infraboard.keyauth.mconf.Type" json:"type"` // contains filtered or unexported fields }
QueryGroupRequest 查询组列表
func NewQueryGroupRequest ¶
func NewQueryGroupRequest(pageReq *request.PageRequest) *QueryGroupRequest
NewQueryGroupRequest 列表查询请求
func (*QueryGroupRequest) Descriptor
deprecated
func (*QueryGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryGroupRequest.ProtoReflect.Descriptor instead.
func (*QueryGroupRequest) GetPage ¶
func (x *QueryGroupRequest) GetPage() *request.PageRequest
func (*QueryGroupRequest) GetType ¶
func (x *QueryGroupRequest) GetType() Type
func (*QueryGroupRequest) ProtoMessage ¶
func (*QueryGroupRequest) ProtoMessage()
func (*QueryGroupRequest) ProtoReflect ¶
func (x *QueryGroupRequest) ProtoReflect() protoreflect.Message
func (*QueryGroupRequest) Reset ¶
func (x *QueryGroupRequest) Reset()
func (*QueryGroupRequest) String ¶
func (x *QueryGroupRequest) String() string
type QueryItemRequest ¶
type QueryItemRequest struct { // @gotags: json:"page" Page *request.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"` // 组名称 // @gotags: json:"group_name" validate:"required,lte=200" GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name" validate:"required,lte=200"` // contains filtered or unexported fields }
QueryItemRequest 查询值列表
func NewQueryItemRequest ¶
func NewQueryItemRequest(pageReq *request.PageRequest) *QueryItemRequest
NewQueryItemRequest 列表查询请求
func (*QueryItemRequest) Descriptor
deprecated
func (*QueryItemRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryItemRequest.ProtoReflect.Descriptor instead.
func (*QueryItemRequest) GetGroupName ¶
func (x *QueryItemRequest) GetGroupName() string
func (*QueryItemRequest) GetPage ¶
func (x *QueryItemRequest) GetPage() *request.PageRequest
func (*QueryItemRequest) ProtoMessage ¶
func (*QueryItemRequest) ProtoMessage()
func (*QueryItemRequest) ProtoReflect ¶
func (x *QueryItemRequest) ProtoReflect() protoreflect.Message
func (*QueryItemRequest) Reset ¶
func (x *QueryItemRequest) Reset()
func (*QueryItemRequest) String ¶
func (x *QueryItemRequest) String() string
type RemoveItemFromGroupRequest ¶
type RemoveItemFromGroupRequest struct { // @gotags: json:"group_name" GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name"` // @gotags: json:"remove_all" RemoveAll bool `protobuf:"varint,2,opt,name=remove_all,json=removeAll,proto3" json:"remove_all"` // @gotags: bson:"items" json:"items" Items []string `protobuf:"bytes,3,rep,name=items,proto3" json:"items" bson:"items"` // contains filtered or unexported fields }
RemoveItemFromGroupRequest todo
func (*RemoveItemFromGroupRequest) Descriptor
deprecated
func (*RemoveItemFromGroupRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveItemFromGroupRequest.ProtoReflect.Descriptor instead.
func (*RemoveItemFromGroupRequest) GetGroupName ¶
func (x *RemoveItemFromGroupRequest) GetGroupName() string
func (*RemoveItemFromGroupRequest) GetItems ¶
func (x *RemoveItemFromGroupRequest) GetItems() []string
func (*RemoveItemFromGroupRequest) GetRemoveAll ¶
func (x *RemoveItemFromGroupRequest) GetRemoveAll() bool
func (*RemoveItemFromGroupRequest) ProtoMessage ¶
func (*RemoveItemFromGroupRequest) ProtoMessage()
func (*RemoveItemFromGroupRequest) ProtoReflect ¶
func (x *RemoveItemFromGroupRequest) ProtoReflect() protoreflect.Message
func (*RemoveItemFromGroupRequest) Reset ¶
func (x *RemoveItemFromGroupRequest) Reset()
func (*RemoveItemFromGroupRequest) String ¶
func (x *RemoveItemFromGroupRequest) String() string
type ServiceClient ¶
type ServiceClient interface { CreateGroup(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*Group, error) QueryGroup(ctx context.Context, in *QueryGroupRequest, opts ...grpc.CallOption) (*GroupSet, error) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*Group, error) QueryItem(ctx context.Context, in *QueryItemRequest, opts ...grpc.CallOption) (*ItemSet, error) AddItemToGroup(ctx context.Context, in *AddItemToGroupRequest, opts ...grpc.CallOption) (*ItemSet, error) RemoveItemFromGroup(ctx context.Context, in *RemoveItemFromGroupRequest, opts ...grpc.CallOption) (*ItemSet, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceServer ¶
type ServiceServer interface { CreateGroup(context.Context, *CreateGroupRequest) (*Group, error) QueryGroup(context.Context, *QueryGroupRequest) (*GroupSet, error) DeleteGroup(context.Context, *DeleteGroupRequest) (*Group, error) QueryItem(context.Context, *QueryItemRequest) (*ItemSet, error) AddItemToGroup(context.Context, *AddItemToGroupRequest) (*ItemSet, error) RemoveItemFromGroup(context.Context, *RemoveItemFromGroupRequest) (*ItemSet, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type Type ¶
type Type int32
func ParseTypeFromString ¶
ParseTypeFromString Parse Type from string
func (Type) Descriptor ¶
func (Type) Descriptor() protoreflect.EnumDescriptor
func (Type) EnumDescriptor
deprecated
func (Type) Number ¶
func (x Type) Number() protoreflect.EnumNumber
func (Type) Type ¶
func (Type) Type() protoreflect.EnumType
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddItemToGroup ¶
func (UnimplementedServiceServer) AddItemToGroup(context.Context, *AddItemToGroupRequest) (*ItemSet, error)
func (UnimplementedServiceServer) CreateGroup ¶
func (UnimplementedServiceServer) CreateGroup(context.Context, *CreateGroupRequest) (*Group, error)
func (UnimplementedServiceServer) DeleteGroup ¶
func (UnimplementedServiceServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*Group, error)
func (UnimplementedServiceServer) QueryGroup ¶
func (UnimplementedServiceServer) QueryGroup(context.Context, *QueryGroupRequest) (*GroupSet, error)
func (UnimplementedServiceServer) QueryItem ¶
func (UnimplementedServiceServer) QueryItem(context.Context, *QueryItemRequest) (*ItemSet, error)
func (UnimplementedServiceServer) RemoveItemFromGroup ¶
func (UnimplementedServiceServer) RemoveItemFromGroup(context.Context, *RemoveItemFromGroupRequest) (*ItemSet, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.