Documentation ¶
Index ¶
- Variables
- func RegisterGroupCommandServiceServer(s grpc.ServiceRegistrar, srv GroupCommandServiceServer)
- type CreateGroupReq
- func (*CreateGroupReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateGroupReq) GetActive() bool
- func (x *CreateGroupReq) GetCreatorID() string
- func (x *CreateGroupReq) GetDescription() string
- func (x *CreateGroupReq) GetID() string
- func (x *CreateGroupReq) GetName() string
- func (*CreateGroupReq) ProtoMessage()
- func (x *CreateGroupReq) ProtoReflect() protoreflect.Message
- func (x *CreateGroupReq) Reset()
- func (x *CreateGroupReq) String() string
- type CreateGroupRes
- type GetGroupByIdReq
- type GetGroupByIdRes
- type Group
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) GetActive() bool
- func (x *Group) GetCreatedAt() *timestamp.Timestamp
- func (x *Group) GetCreatorID() string
- func (x *Group) GetDescription() string
- func (x *Group) GetID() string
- func (x *Group) GetName() string
- func (x *Group) GetUpdatedAt() *timestamp.Timestamp
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) String() string
- type GroupCommandServiceClient
- type GroupCommandServiceServer
- type UnimplementedGroupCommandServiceServer
- func (UnimplementedGroupCommandServiceServer) CreateGroup(context.Context, *CreateGroupReq) (*CreateGroupRes, error)
- func (UnimplementedGroupCommandServiceServer) GetGroupById(context.Context, *GetGroupByIdReq) (*GetGroupByIdRes, error)
- func (UnimplementedGroupCommandServiceServer) UpdateGroup(context.Context, *UpdateGroupReq) (*UpdateGroupRes, error)
- type UnsafeGroupCommandServiceServer
- type UpdateGroupReq
- func (*UpdateGroupReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGroupReq) GetDescription() string
- func (x *UpdateGroupReq) GetID() string
- func (x *UpdateGroupReq) GetName() string
- func (*UpdateGroupReq) ProtoMessage()
- func (x *UpdateGroupReq) ProtoReflect() protoreflect.Message
- func (x *UpdateGroupReq) Reset()
- func (x *UpdateGroupReq) String() string
- type UpdateGroupRes
Constants ¶
This section is empty.
Variables ¶
var File_group_command_messages_proto protoreflect.FileDescriptor
var File_group_command_proto protoreflect.FileDescriptor
var GroupCommandService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "groupCommandService.groupCommandService", HandlerType: (*GroupCommandServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateGroup", Handler: _GroupCommandService_CreateGroup_Handler, }, { MethodName: "UpdateGroup", Handler: _GroupCommandService_UpdateGroup_Handler, }, { MethodName: "GetGroupById", Handler: _GroupCommandService_GetGroupById_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "group_command.proto", }
GroupCommandService_ServiceDesc is the grpc.ServiceDesc for GroupCommandService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGroupCommandServiceServer ¶
func RegisterGroupCommandServiceServer(s grpc.ServiceRegistrar, srv GroupCommandServiceServer)
Types ¶
type CreateGroupReq ¶
type CreateGroupReq 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"` Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` CreatorID string `protobuf:"bytes,4,opt,name=CreatorID,proto3" json:"CreatorID,omitempty"` Active bool `protobuf:"varint,5,opt,name=Active,proto3" json:"Active,omitempty"` // contains filtered or unexported fields }
func (*CreateGroupReq) Descriptor
deprecated
func (*CreateGroupReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupReq.ProtoReflect.Descriptor instead.
func (*CreateGroupReq) GetActive ¶
func (x *CreateGroupReq) GetActive() bool
func (*CreateGroupReq) GetCreatorID ¶
func (x *CreateGroupReq) GetCreatorID() string
func (*CreateGroupReq) GetDescription ¶
func (x *CreateGroupReq) GetDescription() string
func (*CreateGroupReq) GetID ¶
func (x *CreateGroupReq) GetID() string
func (*CreateGroupReq) GetName ¶
func (x *CreateGroupReq) GetName() string
func (*CreateGroupReq) ProtoMessage ¶
func (*CreateGroupReq) ProtoMessage()
func (*CreateGroupReq) ProtoReflect ¶
func (x *CreateGroupReq) ProtoReflect() protoreflect.Message
func (*CreateGroupReq) Reset ¶
func (x *CreateGroupReq) Reset()
func (*CreateGroupReq) String ¶
func (x *CreateGroupReq) String() string
type CreateGroupRes ¶
type CreateGroupRes struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*CreateGroupRes) Descriptor
deprecated
func (*CreateGroupRes) Descriptor() ([]byte, []int)
Deprecated: Use CreateGroupRes.ProtoReflect.Descriptor instead.
func (*CreateGroupRes) GetID ¶
func (x *CreateGroupRes) GetID() string
func (*CreateGroupRes) ProtoMessage ¶
func (*CreateGroupRes) ProtoMessage()
func (*CreateGroupRes) ProtoReflect ¶
func (x *CreateGroupRes) ProtoReflect() protoreflect.Message
func (*CreateGroupRes) Reset ¶
func (x *CreateGroupRes) Reset()
func (*CreateGroupRes) String ¶
func (x *CreateGroupRes) String() string
type GetGroupByIdReq ¶
type GetGroupByIdReq struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*GetGroupByIdReq) Descriptor
deprecated
func (*GetGroupByIdReq) Descriptor() ([]byte, []int)
Deprecated: Use GetGroupByIdReq.ProtoReflect.Descriptor instead.
func (*GetGroupByIdReq) GetID ¶
func (x *GetGroupByIdReq) GetID() string
func (*GetGroupByIdReq) ProtoMessage ¶
func (*GetGroupByIdReq) ProtoMessage()
func (*GetGroupByIdReq) ProtoReflect ¶
func (x *GetGroupByIdReq) ProtoReflect() protoreflect.Message
func (*GetGroupByIdReq) Reset ¶
func (x *GetGroupByIdReq) Reset()
func (*GetGroupByIdReq) String ¶
func (x *GetGroupByIdReq) String() string
type GetGroupByIdRes ¶
type GetGroupByIdRes struct { Group *Group `protobuf:"bytes,1,opt,name=Group,proto3" json:"Group,omitempty"` // contains filtered or unexported fields }
func (*GetGroupByIdRes) Descriptor
deprecated
func (*GetGroupByIdRes) Descriptor() ([]byte, []int)
Deprecated: Use GetGroupByIdRes.ProtoReflect.Descriptor instead.
func (*GetGroupByIdRes) GetGroup ¶
func (x *GetGroupByIdRes) GetGroup() *Group
func (*GetGroupByIdRes) ProtoMessage ¶
func (*GetGroupByIdRes) ProtoMessage()
func (*GetGroupByIdRes) ProtoReflect ¶
func (x *GetGroupByIdRes) ProtoReflect() protoreflect.Message
func (*GetGroupByIdRes) Reset ¶
func (x *GetGroupByIdRes) Reset()
func (*GetGroupByIdRes) String ¶
func (x *GetGroupByIdRes) String() string
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"` Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` CreatorID string `protobuf:"bytes,4,opt,name=CreatorID,proto3" json:"CreatorID,omitempty"` Active bool `protobuf:"varint,5,opt,name=Active,proto3" json:"Active,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` // contains filtered or unexported fields }
func (*Group) Descriptor
deprecated
func (*Group) GetCreatedAt ¶
func (*Group) GetCreatorID ¶
func (*Group) GetDescription ¶
func (*Group) GetUpdatedAt ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
type GroupCommandServiceClient ¶
type GroupCommandServiceClient interface { CreateGroup(ctx context.Context, in *CreateGroupReq, opts ...grpc.CallOption) (*CreateGroupRes, error) UpdateGroup(ctx context.Context, in *UpdateGroupReq, opts ...grpc.CallOption) (*UpdateGroupRes, error) GetGroupById(ctx context.Context, in *GetGroupByIdReq, opts ...grpc.CallOption) (*GetGroupByIdRes, error) }
GroupCommandServiceClient is the client API for GroupCommandService 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 NewGroupCommandServiceClient ¶
func NewGroupCommandServiceClient(cc grpc.ClientConnInterface) GroupCommandServiceClient
type GroupCommandServiceServer ¶
type GroupCommandServiceServer interface { CreateGroup(context.Context, *CreateGroupReq) (*CreateGroupRes, error) UpdateGroup(context.Context, *UpdateGroupReq) (*UpdateGroupRes, error) GetGroupById(context.Context, *GetGroupByIdReq) (*GetGroupByIdRes, error) }
GroupCommandServiceServer is the server API for GroupCommandService service. All implementations should embed UnimplementedGroupCommandServiceServer for forward compatibility
type UnimplementedGroupCommandServiceServer ¶
type UnimplementedGroupCommandServiceServer struct { }
UnimplementedGroupCommandServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedGroupCommandServiceServer) CreateGroup ¶
func (UnimplementedGroupCommandServiceServer) CreateGroup(context.Context, *CreateGroupReq) (*CreateGroupRes, error)
func (UnimplementedGroupCommandServiceServer) GetGroupById ¶
func (UnimplementedGroupCommandServiceServer) GetGroupById(context.Context, *GetGroupByIdReq) (*GetGroupByIdRes, error)
func (UnimplementedGroupCommandServiceServer) UpdateGroup ¶
func (UnimplementedGroupCommandServiceServer) UpdateGroup(context.Context, *UpdateGroupReq) (*UpdateGroupRes, error)
type UnsafeGroupCommandServiceServer ¶
type UnsafeGroupCommandServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGroupCommandServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GroupCommandServiceServer will result in compilation errors.
type UpdateGroupReq ¶
type UpdateGroupReq 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"` Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` // contains filtered or unexported fields }
func (*UpdateGroupReq) Descriptor
deprecated
func (*UpdateGroupReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGroupReq.ProtoReflect.Descriptor instead.
func (*UpdateGroupReq) GetDescription ¶
func (x *UpdateGroupReq) GetDescription() string
func (*UpdateGroupReq) GetID ¶
func (x *UpdateGroupReq) GetID() string
func (*UpdateGroupReq) GetName ¶
func (x *UpdateGroupReq) GetName() string
func (*UpdateGroupReq) ProtoMessage ¶
func (*UpdateGroupReq) ProtoMessage()
func (*UpdateGroupReq) ProtoReflect ¶
func (x *UpdateGroupReq) ProtoReflect() protoreflect.Message
func (*UpdateGroupReq) Reset ¶
func (x *UpdateGroupReq) Reset()
func (*UpdateGroupReq) String ¶
func (x *UpdateGroupReq) String() string
type UpdateGroupRes ¶
type UpdateGroupRes struct {
// contains filtered or unexported fields
}
func (*UpdateGroupRes) Descriptor
deprecated
func (*UpdateGroupRes) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGroupRes.ProtoReflect.Descriptor instead.
func (*UpdateGroupRes) ProtoMessage ¶
func (*UpdateGroupRes) ProtoMessage()
func (*UpdateGroupRes) ProtoReflect ¶
func (x *UpdateGroupRes) ProtoReflect() protoreflect.Message
func (*UpdateGroupRes) Reset ¶
func (x *UpdateGroupRes) Reset()
func (*UpdateGroupRes) String ¶
func (x *UpdateGroupRes) String() string