Documentation ¶
Index ¶
- Variables
- func RegisterGroupServiceServer(s grpc.ServiceRegistrar, srv GroupServiceServer)
- type CreateReq
- type CreateRes
- type DeleteReq
- type DeleteRes
- type Empty
- type FindReq
- func (*FindReq) Descriptor() ([]byte, []int)deprecated
- func (x *FindReq) GetGroup() *Group
- func (x *FindReq) GetPage() int64
- func (x *FindReq) GetSize() int64
- func (*FindReq) ProtoMessage()
- func (x *FindReq) ProtoReflect() protoreflect.Message
- func (x *FindReq) Reset()
- func (x *FindReq) String() string
- type FindRes
- func (*FindRes) Descriptor() ([]byte, []int)deprecated
- func (x *FindRes) GetGroups() []*Group
- func (x *FindRes) GetHasMore() bool
- func (x *FindRes) GetPage() int64
- func (x *FindRes) GetSize() int64
- func (x *FindRes) GetTotalCount() int64
- func (x *FindRes) GetTotalPages() int64
- func (*FindRes) ProtoMessage()
- func (x *FindRes) ProtoReflect() protoreflect.Message
- func (x *FindRes) Reset()
- func (x *FindRes) String() string
- type GetReq
- type GetRes
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetCreatedAt() *timestamppb.Timestamp
- func (x *Group) GetDeletedAt() *timestamppb.Timestamp
- func (x *Group) GetId() string
- func (x *Group) GetLastModified() *timestamppb.Timestamp
- func (x *Group) GetName() string
- func (x *Group) GetRootAdmin() bool
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type GroupServiceClient
- type GroupServiceServer
- type UnimplementedGroupServiceServer
- func (UnimplementedGroupServiceServer) Create(context.Context, *CreateReq) (*CreateRes, error)
- func (UnimplementedGroupServiceServer) Delete(context.Context, *DeleteReq) (*DeleteRes, error)
- func (UnimplementedGroupServiceServer) Find(context.Context, *FindReq) (*FindRes, error)
- func (UnimplementedGroupServiceServer) Get(context.Context, *GetReq) (*GetRes, error)
- func (UnimplementedGroupServiceServer) Update(context.Context, *UpdateReq) (*UpdateRes, error)
- type UnsafeGroupServiceServer
- type UpdateReq
- type UpdateRes
Constants ¶
This section is empty.
Variables ¶
var File_group_proto protoreflect.FileDescriptor
var GroupService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "groupsService.GroupService", HandlerType: (*GroupServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _GroupService_Create_Handler, }, { MethodName: "Update", Handler: _GroupService_Update_Handler, }, { MethodName: "Get", Handler: _GroupService_Get_Handler, }, { MethodName: "Find", Handler: _GroupService_Find_Handler, }, { MethodName: "Delete", Handler: _GroupService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "group.proto", }
GroupService_ServiceDesc is the grpc.ServiceDesc for GroupService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGroupServiceServer ¶
func RegisterGroupServiceServer(s grpc.ServiceRegistrar, srv GroupServiceServer)
Types ¶
type CreateReq ¶
type CreateReq struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` RootAdmin bool `protobuf:"varint,2,opt,name=RootAdmin,proto3" json:"RootAdmin,omitempty"` // contains filtered or unexported fields }
func (*CreateReq) Descriptor
deprecated
func (*CreateReq) GetRootAdmin ¶
func (*CreateReq) ProtoMessage ¶
func (*CreateReq) ProtoMessage()
func (*CreateReq) ProtoReflect ¶
func (x *CreateReq) ProtoReflect() protoreflect.Message
type CreateRes ¶
type CreateRes struct { Group *Group `protobuf:"bytes,1,opt,name=Group,proto3" json:"Group,omitempty"` // contains filtered or unexported fields }
func (*CreateRes) Descriptor
deprecated
func (*CreateRes) ProtoMessage ¶
func (*CreateRes) ProtoMessage()
func (*CreateRes) ProtoReflect ¶
func (x *CreateRes) ProtoReflect() protoreflect.Message
type DeleteReq ¶
type DeleteReq struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
func (*DeleteReq) Descriptor
deprecated
func (*DeleteReq) ProtoMessage ¶
func (*DeleteReq) ProtoMessage()
func (*DeleteReq) ProtoReflect ¶
func (x *DeleteReq) ProtoReflect() protoreflect.Message
type DeleteRes ¶
type DeleteRes struct { Group *Group `protobuf:"bytes,1,opt,name=Group,proto3" json:"Group,omitempty"` // contains filtered or unexported fields }
func (*DeleteRes) Descriptor
deprecated
func (*DeleteRes) ProtoMessage ¶
func (*DeleteRes) ProtoMessage()
func (*DeleteRes) ProtoReflect ¶
func (x *DeleteRes) ProtoReflect() protoreflect.Message
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type FindReq ¶
type FindReq struct { Group *Group `protobuf:"bytes,1,opt,name=Group,proto3" json:"Group,omitempty"` Page int64 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page,omitempty"` Size int64 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"` // contains filtered or unexported fields }
func (*FindReq) Descriptor
deprecated
func (*FindReq) ProtoMessage ¶
func (*FindReq) ProtoMessage()
func (*FindReq) ProtoReflect ¶
func (x *FindReq) ProtoReflect() protoreflect.Message
type FindRes ¶
type FindRes struct { TotalCount int64 `protobuf:"varint,1,opt,name=TotalCount,proto3" json:"TotalCount,omitempty"` TotalPages int64 `protobuf:"varint,2,opt,name=TotalPages,proto3" json:"TotalPages,omitempty"` Page int64 `protobuf:"varint,3,opt,name=Page,proto3" json:"Page,omitempty"` Size int64 `protobuf:"varint,4,opt,name=Size,proto3" json:"Size,omitempty"` HasMore bool `protobuf:"varint,5,opt,name=HasMore,proto3" json:"HasMore,omitempty"` Groups []*Group `protobuf:"bytes,6,rep,name=Groups,proto3" json:"Groups,omitempty"` // contains filtered or unexported fields }
func (*FindRes) Descriptor
deprecated
func (*FindRes) GetHasMore ¶
func (*FindRes) GetTotalCount ¶
func (*FindRes) GetTotalPages ¶
func (*FindRes) ProtoMessage ¶
func (*FindRes) ProtoMessage()
func (*FindRes) ProtoReflect ¶
func (x *FindRes) ProtoReflect() protoreflect.Message
type GetReq ¶
type GetReq struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` // contains filtered or unexported fields }
func (*GetReq) Descriptor
deprecated
func (*GetReq) ProtoMessage ¶
func (*GetReq) ProtoMessage()
func (*GetReq) ProtoReflect ¶
func (x *GetReq) ProtoReflect() protoreflect.Message
type GetRes ¶
type GetRes struct { Group *Group `protobuf:"bytes,1,opt,name=Group,proto3" json:"Group,omitempty"` // contains filtered or unexported fields }
func (*GetRes) Descriptor
deprecated
func (*GetRes) ProtoMessage ¶
func (*GetRes) ProtoMessage()
func (*GetRes) ProtoReflect ¶
func (x *GetRes) ProtoReflect() protoreflect.Message
type Group ¶
type Group struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` RootAdmin bool `protobuf:"varint,3,opt,name=RootAdmin,proto3" json:"RootAdmin,omitempty"` LastModified *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=LastModified,proto3" json:"LastModified,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=DeletedAt,proto3" json:"DeletedAt,omitempty"` // contains filtered or unexported fields }
func (*Group) Descriptor
deprecated
func (*Group) GetCreatedAt ¶
func (x *Group) GetCreatedAt() *timestamppb.Timestamp
func (*Group) GetDeletedAt ¶
func (x *Group) GetDeletedAt() *timestamppb.Timestamp
func (*Group) GetLastModified ¶
func (x *Group) GetLastModified() *timestamppb.Timestamp
func (*Group) GetRootAdmin ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type GroupServiceClient ¶
type GroupServiceClient interface { Create(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*CreateRes, error) Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*UpdateRes, error) Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetRes, error) Find(ctx context.Context, in *FindReq, opts ...grpc.CallOption) (*FindRes, error) Delete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*DeleteRes, error) }
GroupServiceClient is the client API for GroupService 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 NewGroupServiceClient ¶
func NewGroupServiceClient(cc grpc.ClientConnInterface) GroupServiceClient
type GroupServiceServer ¶
type GroupServiceServer interface { Create(context.Context, *CreateReq) (*CreateRes, error) Update(context.Context, *UpdateReq) (*UpdateRes, error) Get(context.Context, *GetReq) (*GetRes, error) Find(context.Context, *FindReq) (*FindRes, error) Delete(context.Context, *DeleteReq) (*DeleteRes, error) }
GroupServiceServer is the server API for GroupService service. All implementations should embed UnimplementedGroupServiceServer for forward compatibility
type UnimplementedGroupServiceServer ¶
type UnimplementedGroupServiceServer struct { }
UnimplementedGroupServiceServer should be embedded to have forward compatible implementations.
type UnsafeGroupServiceServer ¶
type UnsafeGroupServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGroupServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GroupServiceServer will result in compilation errors.
type UpdateReq ¶
type UpdateReq struct { Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*UpdateReq) Descriptor
deprecated
func (*UpdateReq) ProtoMessage ¶
func (*UpdateReq) ProtoMessage()
func (*UpdateReq) ProtoReflect ¶
func (x *UpdateReq) ProtoReflect() protoreflect.Message
type UpdateRes ¶
type UpdateRes struct { Group *Group `protobuf:"bytes,1,opt,name=Group,proto3" json:"Group,omitempty"` // contains filtered or unexported fields }
func (*UpdateRes) Descriptor
deprecated
func (*UpdateRes) ProtoMessage ¶
func (*UpdateRes) ProtoMessage()
func (*UpdateRes) ProtoReflect ¶
func (x *UpdateRes) ProtoReflect() protoreflect.Message