Documentation ¶
Index ¶
- Variables
- func RegisterCategoryServiceServer(s *grpc.Server, srv CategoryServiceServer)
- type CategoryListReponse
- func (*CategoryListReponse) Descriptor() ([]byte, []int)deprecated
- func (x *CategoryListReponse) GetCategoryList() []*CategoryResponse
- func (*CategoryListReponse) ProtoMessage()
- func (x *CategoryListReponse) ProtoReflect() protoreflect.Message
- func (x *CategoryListReponse) Reset()
- func (x *CategoryListReponse) String() string
- type CategoryQueryRequest
- func (*CategoryQueryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CategoryQueryRequest) GetID() int32
- func (*CategoryQueryRequest) ProtoMessage()
- func (x *CategoryQueryRequest) ProtoReflect() protoreflect.Message
- func (x *CategoryQueryRequest) Reset()
- func (x *CategoryQueryRequest) String() string
- type CategoryResponse
- func (*CategoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CategoryResponse) GetDescription() string
- func (x *CategoryResponse) GetID() int32
- func (x *CategoryResponse) GetImage() string
- func (x *CategoryResponse) GetName() string
- func (*CategoryResponse) ProtoMessage()
- func (x *CategoryResponse) ProtoReflect() protoreflect.Message
- func (x *CategoryResponse) Reset()
- func (x *CategoryResponse) String() string
- type CategoryServiceClient
- type CategoryServiceServer
- type CategoryService_FindAllClient
- type CategoryService_FindAllServer
- type UnimplementedCategoryServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_protocols_category_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCategoryServiceServer ¶
func RegisterCategoryServiceServer(s *grpc.Server, srv CategoryServiceServer)
Types ¶
type CategoryListReponse ¶
type CategoryListReponse struct { CategoryList []*CategoryResponse `protobuf:"bytes,1,rep,name=CategoryList,proto3" json:"CategoryList,omitempty"` // contains filtered or unexported fields }
func (*CategoryListReponse) Descriptor
deprecated
func (*CategoryListReponse) Descriptor() ([]byte, []int)
Deprecated: Use CategoryListReponse.ProtoReflect.Descriptor instead.
func (*CategoryListReponse) GetCategoryList ¶
func (x *CategoryListReponse) GetCategoryList() []*CategoryResponse
func (*CategoryListReponse) ProtoMessage ¶
func (*CategoryListReponse) ProtoMessage()
func (*CategoryListReponse) ProtoReflect ¶
func (x *CategoryListReponse) ProtoReflect() protoreflect.Message
func (*CategoryListReponse) Reset ¶
func (x *CategoryListReponse) Reset()
func (*CategoryListReponse) String ¶
func (x *CategoryListReponse) String() string
type CategoryQueryRequest ¶
type CategoryQueryRequest struct { ID int32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*CategoryQueryRequest) Descriptor
deprecated
func (*CategoryQueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CategoryQueryRequest.ProtoReflect.Descriptor instead.
func (*CategoryQueryRequest) GetID ¶
func (x *CategoryQueryRequest) GetID() int32
func (*CategoryQueryRequest) ProtoMessage ¶
func (*CategoryQueryRequest) ProtoMessage()
func (*CategoryQueryRequest) ProtoReflect ¶
func (x *CategoryQueryRequest) ProtoReflect() protoreflect.Message
func (*CategoryQueryRequest) Reset ¶
func (x *CategoryQueryRequest) Reset()
func (*CategoryQueryRequest) String ¶
func (x *CategoryQueryRequest) String() string
type CategoryResponse ¶
type CategoryResponse struct { ID int32 `protobuf:"varint,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"` Image string `protobuf:"bytes,4,opt,name=Image,proto3" json:"Image,omitempty"` // contains filtered or unexported fields }
func (*CategoryResponse) Descriptor
deprecated
func (*CategoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use CategoryResponse.ProtoReflect.Descriptor instead.
func (*CategoryResponse) GetDescription ¶
func (x *CategoryResponse) GetDescription() string
func (*CategoryResponse) GetID ¶
func (x *CategoryResponse) GetID() int32
func (*CategoryResponse) GetImage ¶
func (x *CategoryResponse) GetImage() string
func (*CategoryResponse) GetName ¶
func (x *CategoryResponse) GetName() string
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 { FindByID(ctx context.Context, in *CategoryQueryRequest, opts ...grpc.CallOption) (*CategoryResponse, error) FindAll(ctx context.Context, in *CategoryQueryRequest, opts ...grpc.CallOption) (CategoryService_FindAllClient, error) }
CategoryServiceClient is the client API for CategoryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCategoryServiceClient ¶
func NewCategoryServiceClient(cc grpc.ClientConnInterface) CategoryServiceClient
type CategoryServiceServer ¶
type CategoryServiceServer interface { FindByID(context.Context, *CategoryQueryRequest) (*CategoryResponse, error) FindAll(*CategoryQueryRequest, CategoryService_FindAllServer) error }
CategoryServiceServer is the server API for CategoryService service.
type CategoryService_FindAllClient ¶
type CategoryService_FindAllClient interface { Recv() (*CategoryResponse, error) grpc.ClientStream }
type CategoryService_FindAllServer ¶
type CategoryService_FindAllServer interface { Send(*CategoryResponse) error grpc.ServerStream }
type UnimplementedCategoryServiceServer ¶
type UnimplementedCategoryServiceServer struct { }
UnimplementedCategoryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCategoryServiceServer) FindAll ¶
func (*UnimplementedCategoryServiceServer) FindAll(*CategoryQueryRequest, CategoryService_FindAllServer) error
func (*UnimplementedCategoryServiceServer) FindByID ¶
func (*UnimplementedCategoryServiceServer) FindByID(context.Context, *CategoryQueryRequest) (*CategoryResponse, error)
Click to show internal directories.
Click to hide internal directories.