Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCategoryServiceServer(s grpc.ServiceRegistrar, srv CategoryServiceServer)
- type Blank
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetDescription() string
- func (x *Category) GetId() string
- func (x *Category) GetName() string
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- type CategoryList
- type CategoryResponse
- type CategoryServiceClient
- type CategoryServiceServer
- type CategoryService_CreateCategoryInBatchClient
- type CategoryService_CreateCategoryInBatchServer
- type CategoryService_DeleteCategoryInBatchClient
- type CategoryService_DeleteCategoryInBatchServer
- type CreateCategoryRequest
- func (*CreateCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCategoryRequest) GetDescription() string
- func (x *CreateCategoryRequest) GetName() string
- func (*CreateCategoryRequest) ProtoMessage()
- func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCategoryRequest) Reset()
- func (x *CreateCategoryRequest) String() string
- type DeleteCategoryRequest
- func (*DeleteCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCategoryRequest) GetId() string
- func (*DeleteCategoryRequest) ProtoMessage()
- func (x *DeleteCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCategoryRequest) Reset()
- func (x *DeleteCategoryRequest) String() string
- type UnimplementedCategoryServiceServer
- func (UnimplementedCategoryServiceServer) CreateCategory(context.Context, *CreateCategoryRequest) (*CategoryResponse, error)
- func (UnimplementedCategoryServiceServer) CreateCategoryInBatch(grpc.BidiStreamingServer[CreateCategoryRequest, CategoryList]) error
- func (UnimplementedCategoryServiceServer) DeleteCategoryInBatch(grpc.BidiStreamingServer[DeleteCategoryRequest, CategoryList]) error
- func (UnimplementedCategoryServiceServer) FindAll(context.Context, *Blank) (*CategoryList, error)
- func (UnimplementedCategoryServiceServer) UpdateCategory(context.Context, *UpdateCategoryRequest) (*CategoryResponse, error)
- type UnsafeCategoryServiceServer
- type UpdateCategoryRequest
- func (*UpdateCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCategoryRequest) GetDescription() string
- func (x *UpdateCategoryRequest) GetId() string
- func (x *UpdateCategoryRequest) GetName() string
- func (*UpdateCategoryRequest) ProtoMessage()
- func (x *UpdateCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCategoryRequest) Reset()
- func (x *UpdateCategoryRequest) String() string
Constants ¶
const ( CategoryService_CreateCategory_FullMethodName = "/proto.CategoryService/CreateCategory" CategoryService_UpdateCategory_FullMethodName = "/proto.CategoryService/UpdateCategory" CategoryService_FindAll_FullMethodName = "/proto.CategoryService/FindAll" CategoryService_CreateCategoryInBatch_FullMethodName = "/proto.CategoryService/CreateCategoryInBatch" CategoryService_DeleteCategoryInBatch_FullMethodName = "/proto.CategoryService/DeleteCategoryInBatch" )
Variables ¶
var CategoryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.CategoryService", HandlerType: (*CategoryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCategory", Handler: _CategoryService_CreateCategory_Handler, }, { MethodName: "UpdateCategory", Handler: _CategoryService_UpdateCategory_Handler, }, { MethodName: "FindAll", Handler: _CategoryService_FindAll_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "CreateCategoryInBatch", Handler: _CategoryService_CreateCategoryInBatch_Handler, ServerStreams: true, ClientStreams: true, }, { StreamName: "DeleteCategoryInBatch", Handler: _CategoryService_DeleteCategoryInBatch_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "internal/infra/proto/course_category.proto", }
CategoryService_ServiceDesc is the grpc.ServiceDesc for CategoryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_internal_infra_proto_course_category_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCategoryServiceServer ¶
func RegisterCategoryServiceServer(s grpc.ServiceRegistrar, srv CategoryServiceServer)
Types ¶
type Blank ¶
type Blank struct {
// contains filtered or unexported fields
}
func (*Blank) Descriptor
deprecated
func (*Blank) ProtoMessage ¶
func (*Blank) ProtoMessage()
func (*Blank) ProtoReflect ¶
func (x *Blank) ProtoReflect() protoreflect.Message
type Category ¶
type Category 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 (*Category) Descriptor
deprecated
func (*Category) GetDescription ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
type CategoryList ¶
type CategoryList struct { Categories []*Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` // contains filtered or unexported fields }
func (*CategoryList) Descriptor
deprecated
func (*CategoryList) Descriptor() ([]byte, []int)
Deprecated: Use CategoryList.ProtoReflect.Descriptor instead.
func (*CategoryList) GetCategories ¶
func (x *CategoryList) GetCategories() []*Category
func (*CategoryList) ProtoMessage ¶
func (*CategoryList) ProtoMessage()
func (*CategoryList) ProtoReflect ¶
func (x *CategoryList) ProtoReflect() protoreflect.Message
func (*CategoryList) Reset ¶
func (x *CategoryList) Reset()
func (*CategoryList) String ¶
func (x *CategoryList) String() string
type CategoryResponse ¶
type CategoryResponse struct { Category *Category `protobuf:"bytes,1,opt,name=category,proto3" json:"category,omitempty"` // contains filtered or unexported fields }
func (*CategoryResponse) Descriptor
deprecated
func (*CategoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use CategoryResponse.ProtoReflect.Descriptor instead.
func (*CategoryResponse) GetCategory ¶
func (x *CategoryResponse) GetCategory() *Category
func (*CategoryResponse) ProtoMessage ¶
func (*CategoryResponse) ProtoMessage()
func (*CategoryResponse) ProtoReflect ¶
func (x *CategoryResponse) ProtoReflect() protoreflect.Message
func (*CategoryResponse) Reset ¶
func (x *CategoryResponse) Reset()
func (*CategoryResponse) String ¶
func (x *CategoryResponse) String() string
type CategoryServiceClient ¶
type CategoryServiceClient interface { CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*CategoryResponse, error) UpdateCategory(ctx context.Context, in *UpdateCategoryRequest, opts ...grpc.CallOption) (*CategoryResponse, error) FindAll(ctx context.Context, in *Blank, opts ...grpc.CallOption) (*CategoryList, error) CreateCategoryInBatch(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[CreateCategoryRequest, CategoryList], error) DeleteCategoryInBatch(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[DeleteCategoryRequest, CategoryList], error) }
CategoryServiceClient is the client API for CategoryService 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 NewCategoryServiceClient ¶
func NewCategoryServiceClient(cc grpc.ClientConnInterface) CategoryServiceClient
type CategoryServiceServer ¶
type CategoryServiceServer interface { CreateCategory(context.Context, *CreateCategoryRequest) (*CategoryResponse, error) UpdateCategory(context.Context, *UpdateCategoryRequest) (*CategoryResponse, error) FindAll(context.Context, *Blank) (*CategoryList, error) CreateCategoryInBatch(grpc.BidiStreamingServer[CreateCategoryRequest, CategoryList]) error DeleteCategoryInBatch(grpc.BidiStreamingServer[DeleteCategoryRequest, CategoryList]) error // contains filtered or unexported methods }
CategoryServiceServer is the server API for CategoryService service. All implementations must embed UnimplementedCategoryServiceServer for forward compatibility.
type CategoryService_CreateCategoryInBatchClient ¶
type CategoryService_CreateCategoryInBatchClient = grpc.BidiStreamingClient[CreateCategoryRequest, CategoryList]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type CategoryService_CreateCategoryInBatchServer ¶
type CategoryService_CreateCategoryInBatchServer = grpc.BidiStreamingServer[CreateCategoryRequest, CategoryList]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type CategoryService_DeleteCategoryInBatchClient ¶
type CategoryService_DeleteCategoryInBatchClient = grpc.BidiStreamingClient[DeleteCategoryRequest, CategoryList]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type CategoryService_DeleteCategoryInBatchServer ¶
type CategoryService_DeleteCategoryInBatchServer = grpc.BidiStreamingServer[DeleteCategoryRequest, CategoryList]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type CreateCategoryRequest ¶
type CreateCategoryRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*CreateCategoryRequest) Descriptor
deprecated
func (*CreateCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCategoryRequest.ProtoReflect.Descriptor instead.
func (*CreateCategoryRequest) GetDescription ¶
func (x *CreateCategoryRequest) GetDescription() string
func (*CreateCategoryRequest) GetName ¶
func (x *CreateCategoryRequest) GetName() string
func (*CreateCategoryRequest) ProtoMessage ¶
func (*CreateCategoryRequest) ProtoMessage()
func (*CreateCategoryRequest) ProtoReflect ¶
func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message
func (*CreateCategoryRequest) Reset ¶
func (x *CreateCategoryRequest) Reset()
func (*CreateCategoryRequest) String ¶
func (x *CreateCategoryRequest) String() string
type DeleteCategoryRequest ¶
type DeleteCategoryRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCategoryRequest) Descriptor
deprecated
func (*DeleteCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCategoryRequest.ProtoReflect.Descriptor instead.
func (*DeleteCategoryRequest) GetId ¶
func (x *DeleteCategoryRequest) GetId() string
func (*DeleteCategoryRequest) ProtoMessage ¶
func (*DeleteCategoryRequest) ProtoMessage()
func (*DeleteCategoryRequest) ProtoReflect ¶
func (x *DeleteCategoryRequest) ProtoReflect() protoreflect.Message
func (*DeleteCategoryRequest) Reset ¶
func (x *DeleteCategoryRequest) Reset()
func (*DeleteCategoryRequest) String ¶
func (x *DeleteCategoryRequest) String() string
type UnimplementedCategoryServiceServer ¶
type UnimplementedCategoryServiceServer struct{}
UnimplementedCategoryServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedCategoryServiceServer) CreateCategory ¶
func (UnimplementedCategoryServiceServer) CreateCategory(context.Context, *CreateCategoryRequest) (*CategoryResponse, error)
func (UnimplementedCategoryServiceServer) CreateCategoryInBatch ¶
func (UnimplementedCategoryServiceServer) CreateCategoryInBatch(grpc.BidiStreamingServer[CreateCategoryRequest, CategoryList]) error
func (UnimplementedCategoryServiceServer) DeleteCategoryInBatch ¶
func (UnimplementedCategoryServiceServer) DeleteCategoryInBatch(grpc.BidiStreamingServer[DeleteCategoryRequest, CategoryList]) error
func (UnimplementedCategoryServiceServer) FindAll ¶
func (UnimplementedCategoryServiceServer) FindAll(context.Context, *Blank) (*CategoryList, error)
func (UnimplementedCategoryServiceServer) UpdateCategory ¶
func (UnimplementedCategoryServiceServer) UpdateCategory(context.Context, *UpdateCategoryRequest) (*CategoryResponse, error)
type UnsafeCategoryServiceServer ¶
type UnsafeCategoryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCategoryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CategoryServiceServer will result in compilation errors.
type UpdateCategoryRequest ¶
type UpdateCategoryRequest 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 (*UpdateCategoryRequest) Descriptor
deprecated
func (*UpdateCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCategoryRequest.ProtoReflect.Descriptor instead.
func (*UpdateCategoryRequest) GetDescription ¶
func (x *UpdateCategoryRequest) GetDescription() string
func (*UpdateCategoryRequest) GetId ¶
func (x *UpdateCategoryRequest) GetId() string
func (*UpdateCategoryRequest) GetName ¶
func (x *UpdateCategoryRequest) GetName() string
func (*UpdateCategoryRequest) ProtoMessage ¶
func (*UpdateCategoryRequest) ProtoMessage()
func (*UpdateCategoryRequest) ProtoReflect ¶
func (x *UpdateCategoryRequest) ProtoReflect() protoreflect.Message
func (*UpdateCategoryRequest) Reset ¶
func (x *UpdateCategoryRequest) Reset()
func (*UpdateCategoryRequest) String ¶
func (x *UpdateCategoryRequest) String() string