groupCommandService

package
v0.0.0-...-e5a474c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_group_command_messages_proto protoreflect.FileDescriptor
View Source
var File_group_command_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) GetActive

func (x *Group) GetActive() bool

func (*Group) GetCreatedAt

func (x *Group) GetCreatedAt() *timestamp.Timestamp

func (*Group) GetCreatorID

func (x *Group) GetCreatorID() string

func (*Group) GetDescription

func (x *Group) GetDescription() string

func (*Group) GetID

func (x *Group) GetID() string

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) GetUpdatedAt

func (x *Group) GetUpdatedAt() *timestamp.Timestamp

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

func (x *Group) ProtoReflect() protoreflect.Message

func (*Group) Reset

func (x *Group) Reset()

func (*Group) String

func (x *Group) String() string

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.

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) GetGroupById

func (UnimplementedGroupCommandServiceServer) UpdateGroup

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL