Documentation
¶
Index ¶
- Variables
- func RegisterCategoriesServiceServer(s grpc.ServiceRegistrar, srv CategoriesServiceServer)
- func RegisterMastersServiceServer(s grpc.ServiceRegistrar, srv MastersServiceServer)
- func RegisterTagsServiceServer(s grpc.ServiceRegistrar, srv TagsServiceServer)
- func RegisterToysServiceServer(s grpc.ServiceRegistrar, srv ToysServiceServer)
- type AddToyIn
- func (*AddToyIn) Descriptor() ([]byte, []int)deprecated
- func (x *AddToyIn) GetAttachments() []string
- func (x *AddToyIn) GetCategoryID() uint32
- func (x *AddToyIn) GetDescription() string
- func (x *AddToyIn) GetName() string
- func (x *AddToyIn) GetPrice() float32
- func (x *AddToyIn) GetQuantity() uint32
- func (x *AddToyIn) GetTagIDs() []uint32
- func (x *AddToyIn) GetUserID() uint64
- func (*AddToyIn) ProtoMessage()
- func (x *AddToyIn) ProtoReflect() protoreflect.Message
- func (x *AddToyIn) Reset()
- func (x *AddToyIn) String() string
- type AddToyOut
- type Attachment
- func (*Attachment) Descriptor() ([]byte, []int)deprecated
- func (x *Attachment) GetCreatedAt() *timestamppb.Timestamp
- func (x *Attachment) GetID() uint64
- func (x *Attachment) GetLink() string
- func (x *Attachment) GetToyID() uint64
- func (x *Attachment) GetUpdatedAt() *timestamppb.Timestamp
- func (*Attachment) ProtoMessage()
- func (x *Attachment) ProtoReflect() protoreflect.Message
- func (x *Attachment) Reset()
- func (x *Attachment) String() string
- type CategoriesServiceClient
- type CategoriesServiceServer
- type GetCategoriesOut
- func (*GetCategoriesOut) Descriptor() ([]byte, []int)deprecated
- func (x *GetCategoriesOut) GetCategories() []*GetCategoryOut
- func (*GetCategoriesOut) ProtoMessage()
- func (x *GetCategoriesOut) ProtoReflect() protoreflect.Message
- func (x *GetCategoriesOut) Reset()
- func (x *GetCategoriesOut) String() string
- type GetCategoryIn
- type GetCategoryOut
- func (*GetCategoryOut) Descriptor() ([]byte, []int)deprecated
- func (x *GetCategoryOut) GetCreatedAt() *timestamppb.Timestamp
- func (x *GetCategoryOut) GetID() uint32
- func (x *GetCategoryOut) GetName() string
- func (x *GetCategoryOut) GetUpdatedAt() *timestamppb.Timestamp
- func (*GetCategoryOut) ProtoMessage()
- func (x *GetCategoryOut) ProtoReflect() protoreflect.Message
- func (x *GetCategoryOut) Reset()
- func (x *GetCategoryOut) String() string
- type GetMasterByUserIn
- type GetMasterIn
- type GetMasterOut
- func (*GetMasterOut) Descriptor() ([]byte, []int)deprecated
- func (x *GetMasterOut) GetCreatedAt() *timestamppb.Timestamp
- func (x *GetMasterOut) GetID() uint64
- func (x *GetMasterOut) GetInfo() string
- func (x *GetMasterOut) GetUpdatedAt() *timestamppb.Timestamp
- func (x *GetMasterOut) GetUserID() uint64
- func (*GetMasterOut) ProtoMessage()
- func (x *GetMasterOut) ProtoReflect() protoreflect.Message
- func (x *GetMasterOut) Reset()
- func (x *GetMasterOut) String() string
- type GetMasterToysIn
- type GetMastersOut
- type GetTagIn
- type GetTagOut
- func (*GetTagOut) Descriptor() ([]byte, []int)deprecated
- func (x *GetTagOut) GetCreatedAt() *timestamppb.Timestamp
- func (x *GetTagOut) GetID() uint32
- func (x *GetTagOut) GetName() string
- func (x *GetTagOut) GetUpdatedAt() *timestamppb.Timestamp
- func (*GetTagOut) ProtoMessage()
- func (x *GetTagOut) ProtoReflect() protoreflect.Message
- func (x *GetTagOut) Reset()
- func (x *GetTagOut) String() string
- type GetTagsOut
- type GetToyIn
- type GetToyOut
- func (*GetToyOut) Descriptor() ([]byte, []int)deprecated
- func (x *GetToyOut) GetAttachments() []*Attachment
- func (x *GetToyOut) GetCategoryID() uint32
- func (x *GetToyOut) GetCreatedAt() *timestamppb.Timestamp
- func (x *GetToyOut) GetDescription() string
- func (x *GetToyOut) GetID() uint64
- func (x *GetToyOut) GetMasterID() uint64
- func (x *GetToyOut) GetName() string
- func (x *GetToyOut) GetPrice() float32
- func (x *GetToyOut) GetQuantity() uint32
- func (x *GetToyOut) GetTags() []*GetTagOut
- func (x *GetToyOut) GetUpdatedAt() *timestamppb.Timestamp
- func (*GetToyOut) ProtoMessage()
- func (x *GetToyOut) ProtoReflect() protoreflect.Message
- func (x *GetToyOut) Reset()
- func (x *GetToyOut) String() string
- type GetToysOut
- type GetUserToysIn
- type MastersServiceClient
- type MastersServiceServer
- type RegisterMasterIn
- func (*RegisterMasterIn) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterMasterIn) GetInfo() string
- func (x *RegisterMasterIn) GetUserID() uint64
- func (*RegisterMasterIn) ProtoMessage()
- func (x *RegisterMasterIn) ProtoReflect() protoreflect.Message
- func (x *RegisterMasterIn) Reset()
- func (x *RegisterMasterIn) String() string
- type RegisterMasterOut
- type TagsServiceClient
- type TagsServiceServer
- type ToysServiceClient
- type ToysServiceServer
- type UnimplementedCategoriesServiceServer
- type UnimplementedMastersServiceServer
- func (UnimplementedMastersServiceServer) GetMaster(context.Context, *GetMasterIn) (*GetMasterOut, error)
- func (UnimplementedMastersServiceServer) GetMasterByUser(context.Context, *GetMasterByUserIn) (*GetMasterOut, error)
- func (UnimplementedMastersServiceServer) GetMasters(context.Context, *emptypb.Empty) (*GetMastersOut, error)
- func (UnimplementedMastersServiceServer) RegisterMaster(context.Context, *RegisterMasterIn) (*RegisterMasterOut, error)
- type UnimplementedTagsServiceServer
- type UnimplementedToysServiceServer
- func (UnimplementedToysServiceServer) AddToy(context.Context, *AddToyIn) (*AddToyOut, error)
- func (UnimplementedToysServiceServer) GetMasterToys(context.Context, *GetMasterToysIn) (*GetToysOut, error)
- func (UnimplementedToysServiceServer) GetToy(context.Context, *GetToyIn) (*GetToyOut, error)
- func (UnimplementedToysServiceServer) GetToys(context.Context, *emptypb.Empty) (*GetToysOut, error)
- func (UnimplementedToysServiceServer) GetUserToys(context.Context, *GetUserToysIn) (*GetToysOut, error)
- type UnsafeCategoriesServiceServer
- type UnsafeMastersServiceServer
- type UnsafeTagsServiceServer
- type UnsafeToysServiceServer
Constants ¶
This section is empty.
Variables ¶
var CategoriesService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "categories.CategoriesService", HandlerType: (*CategoriesServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCategory", Handler: _CategoriesService_GetCategory_Handler, }, { MethodName: "GetCategories", Handler: _CategoriesService_GetCategories_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "toys/categories.proto", }
CategoriesService_ServiceDesc is the grpc.ServiceDesc for CategoriesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_toys_categories_proto protoreflect.FileDescriptor
var File_toys_masters_proto protoreflect.FileDescriptor
var File_toys_toys_proto protoreflect.FileDescriptor
var MastersService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "masters.MastersService", HandlerType: (*MastersServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterMaster", Handler: _MastersService_RegisterMaster_Handler, }, { MethodName: "GetMaster", Handler: _MastersService_GetMaster_Handler, }, { MethodName: "GetMasterByUser", Handler: _MastersService_GetMasterByUser_Handler, }, { MethodName: "GetMasters", Handler: _MastersService_GetMasters_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "toys/masters.proto", }
MastersService_ServiceDesc is the grpc.ServiceDesc for MastersService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TagsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tags.TagsService", HandlerType: (*TagsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTag", Handler: _TagsService_GetTag_Handler, }, { MethodName: "GetTags", Handler: _TagsService_GetTags_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "toys/tags.proto", }
TagsService_ServiceDesc is the grpc.ServiceDesc for TagsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ToysService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "toys.ToysService", HandlerType: (*ToysServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddToy", Handler: _ToysService_AddToy_Handler, }, { MethodName: "GetToy", Handler: _ToysService_GetToy_Handler, }, { MethodName: "GetToys", Handler: _ToysService_GetToys_Handler, }, { MethodName: "GetMasterToys", Handler: _ToysService_GetMasterToys_Handler, }, { MethodName: "GetUserToys", Handler: _ToysService_GetUserToys_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "toys/toys.proto", }
ToysService_ServiceDesc is the grpc.ServiceDesc for ToysService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterCategoriesServiceServer ¶
func RegisterCategoriesServiceServer(s grpc.ServiceRegistrar, srv CategoriesServiceServer)
func RegisterMastersServiceServer ¶
func RegisterMastersServiceServer(s grpc.ServiceRegistrar, srv MastersServiceServer)
func RegisterTagsServiceServer ¶
func RegisterTagsServiceServer(s grpc.ServiceRegistrar, srv TagsServiceServer)
func RegisterToysServiceServer ¶
func RegisterToysServiceServer(s grpc.ServiceRegistrar, srv ToysServiceServer)
Types ¶
type AddToyIn ¶ added in v0.0.6
type AddToyIn struct { UserID uint64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,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"` Price float32 `protobuf:"fixed32,4,opt,name=price,proto3" json:"price,omitempty"` Quantity uint32 `protobuf:"varint,5,opt,name=quantity,proto3" json:"quantity,omitempty"` CategoryID uint32 `protobuf:"varint,6,opt,name=categoryID,proto3" json:"categoryID,omitempty"` TagIDs []uint32 `protobuf:"varint,7,rep,packed,name=tagIDs,proto3" json:"tagIDs,omitempty"` Attachments []string `protobuf:"bytes,8,rep,name=attachments,proto3" json:"attachments,omitempty"` // contains filtered or unexported fields }
func (*AddToyIn) Descriptor
deprecated
added in
v0.0.6
func (*AddToyIn) GetAttachments ¶ added in v0.0.9
func (*AddToyIn) GetCategoryID ¶ added in v0.0.6
func (*AddToyIn) GetDescription ¶ added in v0.0.6
func (*AddToyIn) GetQuantity ¶ added in v0.0.6
func (*AddToyIn) ProtoMessage ¶ added in v0.0.6
func (*AddToyIn) ProtoMessage()
func (*AddToyIn) ProtoReflect ¶ added in v0.0.6
func (x *AddToyIn) ProtoReflect() protoreflect.Message
type AddToyOut ¶ added in v0.0.6
type AddToyOut struct { ToyID uint64 `protobuf:"varint,1,opt,name=toyID,proto3" json:"toyID,omitempty"` // contains filtered or unexported fields }
func (*AddToyOut) Descriptor
deprecated
added in
v0.0.6
func (*AddToyOut) ProtoMessage ¶ added in v0.0.6
func (*AddToyOut) ProtoMessage()
func (*AddToyOut) ProtoReflect ¶ added in v0.0.6
func (x *AddToyOut) ProtoReflect() protoreflect.Message
type Attachment ¶ added in v0.0.9
type Attachment struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` ToyID uint64 `protobuf:"varint,2,opt,name=toyID,proto3" json:"toyID,omitempty"` Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*Attachment) Descriptor
deprecated
added in
v0.0.9
func (*Attachment) Descriptor() ([]byte, []int)
Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
func (*Attachment) GetCreatedAt ¶ added in v0.0.9
func (x *Attachment) GetCreatedAt() *timestamppb.Timestamp
func (*Attachment) GetID ¶ added in v0.0.9
func (x *Attachment) GetID() uint64
func (*Attachment) GetLink ¶ added in v0.0.9
func (x *Attachment) GetLink() string
func (*Attachment) GetToyID ¶ added in v0.0.9
func (x *Attachment) GetToyID() uint64
func (*Attachment) GetUpdatedAt ¶ added in v0.0.9
func (x *Attachment) GetUpdatedAt() *timestamppb.Timestamp
func (*Attachment) ProtoMessage ¶ added in v0.0.9
func (*Attachment) ProtoMessage()
func (*Attachment) ProtoReflect ¶ added in v0.0.9
func (x *Attachment) ProtoReflect() protoreflect.Message
func (*Attachment) Reset ¶ added in v0.0.9
func (x *Attachment) Reset()
func (*Attachment) String ¶ added in v0.0.9
func (x *Attachment) String() string
type CategoriesServiceClient ¶
type CategoriesServiceClient interface { GetCategory(ctx context.Context, in *GetCategoryIn, opts ...grpc.CallOption) (*GetCategoryOut, error) GetCategories(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetCategoriesOut, error) }
CategoriesServiceClient is the client API for CategoriesService 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 NewCategoriesServiceClient ¶
func NewCategoriesServiceClient(cc grpc.ClientConnInterface) CategoriesServiceClient
type CategoriesServiceServer ¶
type CategoriesServiceServer interface { GetCategory(context.Context, *GetCategoryIn) (*GetCategoryOut, error) GetCategories(context.Context, *emptypb.Empty) (*GetCategoriesOut, error) // contains filtered or unexported methods }
CategoriesServiceServer is the server API for CategoriesService service. All implementations must embed UnimplementedCategoriesServiceServer for forward compatibility
type GetCategoriesOut ¶ added in v0.0.6
type GetCategoriesOut struct { Categories []*GetCategoryOut `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` // contains filtered or unexported fields }
func (*GetCategoriesOut) Descriptor
deprecated
added in
v0.0.6
func (*GetCategoriesOut) Descriptor() ([]byte, []int)
Deprecated: Use GetCategoriesOut.ProtoReflect.Descriptor instead.
func (*GetCategoriesOut) GetCategories ¶ added in v0.0.6
func (x *GetCategoriesOut) GetCategories() []*GetCategoryOut
func (*GetCategoriesOut) ProtoMessage ¶ added in v0.0.6
func (*GetCategoriesOut) ProtoMessage()
func (*GetCategoriesOut) ProtoReflect ¶ added in v0.0.6
func (x *GetCategoriesOut) ProtoReflect() protoreflect.Message
func (*GetCategoriesOut) Reset ¶ added in v0.0.6
func (x *GetCategoriesOut) Reset()
func (*GetCategoriesOut) String ¶ added in v0.0.6
func (x *GetCategoriesOut) String() string
type GetCategoryIn ¶ added in v0.0.6
type GetCategoryIn struct { ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*GetCategoryIn) Descriptor
deprecated
added in
v0.0.6
func (*GetCategoryIn) Descriptor() ([]byte, []int)
Deprecated: Use GetCategoryIn.ProtoReflect.Descriptor instead.
func (*GetCategoryIn) GetID ¶ added in v0.0.6
func (x *GetCategoryIn) GetID() uint32
func (*GetCategoryIn) ProtoMessage ¶ added in v0.0.6
func (*GetCategoryIn) ProtoMessage()
func (*GetCategoryIn) ProtoReflect ¶ added in v0.0.6
func (x *GetCategoryIn) ProtoReflect() protoreflect.Message
func (*GetCategoryIn) Reset ¶ added in v0.0.6
func (x *GetCategoryIn) Reset()
func (*GetCategoryIn) String ¶ added in v0.0.6
func (x *GetCategoryIn) String() string
type GetCategoryOut ¶ added in v0.0.6
type GetCategoryOut struct { ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetCategoryOut) Descriptor
deprecated
added in
v0.0.6
func (*GetCategoryOut) Descriptor() ([]byte, []int)
Deprecated: Use GetCategoryOut.ProtoReflect.Descriptor instead.
func (*GetCategoryOut) GetCreatedAt ¶ added in v0.0.6
func (x *GetCategoryOut) GetCreatedAt() *timestamppb.Timestamp
func (*GetCategoryOut) GetID ¶ added in v0.0.6
func (x *GetCategoryOut) GetID() uint32
func (*GetCategoryOut) GetName ¶ added in v0.0.6
func (x *GetCategoryOut) GetName() string
func (*GetCategoryOut) GetUpdatedAt ¶ added in v0.0.6
func (x *GetCategoryOut) GetUpdatedAt() *timestamppb.Timestamp
func (*GetCategoryOut) ProtoMessage ¶ added in v0.0.6
func (*GetCategoryOut) ProtoMessage()
func (*GetCategoryOut) ProtoReflect ¶ added in v0.0.6
func (x *GetCategoryOut) ProtoReflect() protoreflect.Message
func (*GetCategoryOut) Reset ¶ added in v0.0.6
func (x *GetCategoryOut) Reset()
func (*GetCategoryOut) String ¶ added in v0.0.6
func (x *GetCategoryOut) String() string
type GetMasterByUserIn ¶ added in v0.0.7
type GetMasterByUserIn struct { UserID uint64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*GetMasterByUserIn) Descriptor
deprecated
added in
v0.0.7
func (*GetMasterByUserIn) Descriptor() ([]byte, []int)
Deprecated: Use GetMasterByUserIn.ProtoReflect.Descriptor instead.
func (*GetMasterByUserIn) GetUserID ¶ added in v0.0.7
func (x *GetMasterByUserIn) GetUserID() uint64
func (*GetMasterByUserIn) ProtoMessage ¶ added in v0.0.7
func (*GetMasterByUserIn) ProtoMessage()
func (*GetMasterByUserIn) ProtoReflect ¶ added in v0.0.7
func (x *GetMasterByUserIn) ProtoReflect() protoreflect.Message
func (*GetMasterByUserIn) Reset ¶ added in v0.0.7
func (x *GetMasterByUserIn) Reset()
func (*GetMasterByUserIn) String ¶ added in v0.0.7
func (x *GetMasterByUserIn) String() string
type GetMasterIn ¶ added in v0.0.6
type GetMasterIn struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*GetMasterIn) Descriptor
deprecated
added in
v0.0.6
func (*GetMasterIn) Descriptor() ([]byte, []int)
Deprecated: Use GetMasterIn.ProtoReflect.Descriptor instead.
func (*GetMasterIn) GetID ¶ added in v0.0.6
func (x *GetMasterIn) GetID() uint64
func (*GetMasterIn) ProtoMessage ¶ added in v0.0.6
func (*GetMasterIn) ProtoMessage()
func (*GetMasterIn) ProtoReflect ¶ added in v0.0.6
func (x *GetMasterIn) ProtoReflect() protoreflect.Message
func (*GetMasterIn) Reset ¶ added in v0.0.6
func (x *GetMasterIn) Reset()
func (*GetMasterIn) String ¶ added in v0.0.6
func (x *GetMasterIn) String() string
type GetMasterOut ¶ added in v0.0.6
type GetMasterOut struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` UserID uint64 `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"` Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetMasterOut) Descriptor
deprecated
added in
v0.0.6
func (*GetMasterOut) Descriptor() ([]byte, []int)
Deprecated: Use GetMasterOut.ProtoReflect.Descriptor instead.
func (*GetMasterOut) GetCreatedAt ¶ added in v0.0.6
func (x *GetMasterOut) GetCreatedAt() *timestamppb.Timestamp
func (*GetMasterOut) GetID ¶ added in v0.0.6
func (x *GetMasterOut) GetID() uint64
func (*GetMasterOut) GetInfo ¶ added in v0.0.6
func (x *GetMasterOut) GetInfo() string
func (*GetMasterOut) GetUpdatedAt ¶ added in v0.0.6
func (x *GetMasterOut) GetUpdatedAt() *timestamppb.Timestamp
func (*GetMasterOut) GetUserID ¶ added in v0.0.6
func (x *GetMasterOut) GetUserID() uint64
func (*GetMasterOut) ProtoMessage ¶ added in v0.0.6
func (*GetMasterOut) ProtoMessage()
func (*GetMasterOut) ProtoReflect ¶ added in v0.0.6
func (x *GetMasterOut) ProtoReflect() protoreflect.Message
func (*GetMasterOut) Reset ¶ added in v0.0.6
func (x *GetMasterOut) Reset()
func (*GetMasterOut) String ¶ added in v0.0.6
func (x *GetMasterOut) String() string
type GetMasterToysIn ¶ added in v0.0.6
type GetMasterToysIn struct { MasterID uint64 `protobuf:"varint,1,opt,name=masterID,proto3" json:"masterID,omitempty"` // contains filtered or unexported fields }
func (*GetMasterToysIn) Descriptor
deprecated
added in
v0.0.6
func (*GetMasterToysIn) Descriptor() ([]byte, []int)
Deprecated: Use GetMasterToysIn.ProtoReflect.Descriptor instead.
func (*GetMasterToysIn) GetMasterID ¶ added in v0.0.6
func (x *GetMasterToysIn) GetMasterID() uint64
func (*GetMasterToysIn) ProtoMessage ¶ added in v0.0.6
func (*GetMasterToysIn) ProtoMessage()
func (*GetMasterToysIn) ProtoReflect ¶ added in v0.0.6
func (x *GetMasterToysIn) ProtoReflect() protoreflect.Message
func (*GetMasterToysIn) Reset ¶ added in v0.0.6
func (x *GetMasterToysIn) Reset()
func (*GetMasterToysIn) String ¶ added in v0.0.6
func (x *GetMasterToysIn) String() string
type GetMastersOut ¶ added in v0.0.6
type GetMastersOut struct { Masters []*GetMasterOut `protobuf:"bytes,1,rep,name=masters,proto3" json:"masters,omitempty"` // contains filtered or unexported fields }
func (*GetMastersOut) Descriptor
deprecated
added in
v0.0.6
func (*GetMastersOut) Descriptor() ([]byte, []int)
Deprecated: Use GetMastersOut.ProtoReflect.Descriptor instead.
func (*GetMastersOut) GetMasters ¶ added in v0.0.6
func (x *GetMastersOut) GetMasters() []*GetMasterOut
func (*GetMastersOut) ProtoMessage ¶ added in v0.0.6
func (*GetMastersOut) ProtoMessage()
func (*GetMastersOut) ProtoReflect ¶ added in v0.0.6
func (x *GetMastersOut) ProtoReflect() protoreflect.Message
func (*GetMastersOut) Reset ¶ added in v0.0.6
func (x *GetMastersOut) Reset()
func (*GetMastersOut) String ¶ added in v0.0.6
func (x *GetMastersOut) String() string
type GetTagIn ¶ added in v0.0.6
type GetTagIn struct { ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*GetTagIn) Descriptor
deprecated
added in
v0.0.6
func (*GetTagIn) ProtoMessage ¶ added in v0.0.6
func (*GetTagIn) ProtoMessage()
func (*GetTagIn) ProtoReflect ¶ added in v0.0.6
func (x *GetTagIn) ProtoReflect() protoreflect.Message
type GetTagOut ¶ added in v0.0.6
type GetTagOut struct { ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetTagOut) Descriptor
deprecated
added in
v0.0.6
func (*GetTagOut) GetCreatedAt ¶ added in v0.0.6
func (x *GetTagOut) GetCreatedAt() *timestamppb.Timestamp
func (*GetTagOut) GetUpdatedAt ¶ added in v0.0.6
func (x *GetTagOut) GetUpdatedAt() *timestamppb.Timestamp
func (*GetTagOut) ProtoMessage ¶ added in v0.0.6
func (*GetTagOut) ProtoMessage()
func (*GetTagOut) ProtoReflect ¶ added in v0.0.6
func (x *GetTagOut) ProtoReflect() protoreflect.Message
type GetTagsOut ¶ added in v0.0.6
type GetTagsOut struct { Tags []*GetTagOut `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*GetTagsOut) Descriptor
deprecated
added in
v0.0.6
func (*GetTagsOut) Descriptor() ([]byte, []int)
Deprecated: Use GetTagsOut.ProtoReflect.Descriptor instead.
func (*GetTagsOut) GetTags ¶ added in v0.0.6
func (x *GetTagsOut) GetTags() []*GetTagOut
func (*GetTagsOut) ProtoMessage ¶ added in v0.0.6
func (*GetTagsOut) ProtoMessage()
func (*GetTagsOut) ProtoReflect ¶ added in v0.0.6
func (x *GetTagsOut) ProtoReflect() protoreflect.Message
func (*GetTagsOut) Reset ¶ added in v0.0.6
func (x *GetTagsOut) Reset()
func (*GetTagsOut) String ¶ added in v0.0.6
func (x *GetTagsOut) String() string
type GetToyIn ¶ added in v0.0.6
type GetToyIn struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` // contains filtered or unexported fields }
func (*GetToyIn) Descriptor
deprecated
added in
v0.0.6
func (*GetToyIn) ProtoMessage ¶ added in v0.0.6
func (*GetToyIn) ProtoMessage()
func (*GetToyIn) ProtoReflect ¶ added in v0.0.6
func (x *GetToyIn) ProtoReflect() protoreflect.Message
type GetToyOut ¶ added in v0.0.6
type GetToyOut struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` MasterID uint64 `protobuf:"varint,2,opt,name=masterID,proto3" json:"masterID,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Price float32 `protobuf:"fixed32,5,opt,name=price,proto3" json:"price,omitempty"` Quantity uint32 `protobuf:"varint,6,opt,name=quantity,proto3" json:"quantity,omitempty"` CategoryID uint32 `protobuf:"varint,7,opt,name=categoryID,proto3" json:"categoryID,omitempty"` Tags []*GetTagOut `protobuf:"bytes,8,rep,name=tags,proto3" json:"tags,omitempty"` Attachments []*Attachment `protobuf:"bytes,9,rep,name=attachments,proto3" json:"attachments,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=createdAt,proto3" json:"createdAt,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` // contains filtered or unexported fields }
func (*GetToyOut) Descriptor
deprecated
added in
v0.0.6
func (*GetToyOut) GetAttachments ¶ added in v0.0.9
func (x *GetToyOut) GetAttachments() []*Attachment
func (*GetToyOut) GetCategoryID ¶ added in v0.0.6
func (*GetToyOut) GetCreatedAt ¶ added in v0.0.6
func (x *GetToyOut) GetCreatedAt() *timestamppb.Timestamp
func (*GetToyOut) GetDescription ¶ added in v0.0.6
func (*GetToyOut) GetMasterID ¶ added in v0.0.6
func (*GetToyOut) GetQuantity ¶ added in v0.0.6
func (*GetToyOut) GetUpdatedAt ¶ added in v0.0.6
func (x *GetToyOut) GetUpdatedAt() *timestamppb.Timestamp
func (*GetToyOut) ProtoMessage ¶ added in v0.0.6
func (*GetToyOut) ProtoMessage()
func (*GetToyOut) ProtoReflect ¶ added in v0.0.6
func (x *GetToyOut) ProtoReflect() protoreflect.Message
type GetToysOut ¶ added in v0.0.6
type GetToysOut struct { Toys []*GetToyOut `protobuf:"bytes,1,rep,name=toys,proto3" json:"toys,omitempty"` // contains filtered or unexported fields }
func (*GetToysOut) Descriptor
deprecated
added in
v0.0.6
func (*GetToysOut) Descriptor() ([]byte, []int)
Deprecated: Use GetToysOut.ProtoReflect.Descriptor instead.
func (*GetToysOut) GetToys ¶ added in v0.0.6
func (x *GetToysOut) GetToys() []*GetToyOut
func (*GetToysOut) ProtoMessage ¶ added in v0.0.6
func (*GetToysOut) ProtoMessage()
func (*GetToysOut) ProtoReflect ¶ added in v0.0.6
func (x *GetToysOut) ProtoReflect() protoreflect.Message
func (*GetToysOut) Reset ¶ added in v0.0.6
func (x *GetToysOut) Reset()
func (*GetToysOut) String ¶ added in v0.0.6
func (x *GetToysOut) String() string
type GetUserToysIn ¶ added in v0.0.8
type GetUserToysIn struct { UserID uint64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*GetUserToysIn) Descriptor
deprecated
added in
v0.0.8
func (*GetUserToysIn) Descriptor() ([]byte, []int)
Deprecated: Use GetUserToysIn.ProtoReflect.Descriptor instead.
func (*GetUserToysIn) GetUserID ¶ added in v0.0.8
func (x *GetUserToysIn) GetUserID() uint64
func (*GetUserToysIn) ProtoMessage ¶ added in v0.0.8
func (*GetUserToysIn) ProtoMessage()
func (*GetUserToysIn) ProtoReflect ¶ added in v0.0.8
func (x *GetUserToysIn) ProtoReflect() protoreflect.Message
func (*GetUserToysIn) Reset ¶ added in v0.0.8
func (x *GetUserToysIn) Reset()
func (*GetUserToysIn) String ¶ added in v0.0.8
func (x *GetUserToysIn) String() string
type MastersServiceClient ¶
type MastersServiceClient interface { RegisterMaster(ctx context.Context, in *RegisterMasterIn, opts ...grpc.CallOption) (*RegisterMasterOut, error) GetMaster(ctx context.Context, in *GetMasterIn, opts ...grpc.CallOption) (*GetMasterOut, error) GetMasterByUser(ctx context.Context, in *GetMasterByUserIn, opts ...grpc.CallOption) (*GetMasterOut, error) GetMasters(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetMastersOut, error) }
MastersServiceClient is the client API for MastersService 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 NewMastersServiceClient ¶
func NewMastersServiceClient(cc grpc.ClientConnInterface) MastersServiceClient
type MastersServiceServer ¶
type MastersServiceServer interface { RegisterMaster(context.Context, *RegisterMasterIn) (*RegisterMasterOut, error) GetMaster(context.Context, *GetMasterIn) (*GetMasterOut, error) GetMasterByUser(context.Context, *GetMasterByUserIn) (*GetMasterOut, error) GetMasters(context.Context, *emptypb.Empty) (*GetMastersOut, error) // contains filtered or unexported methods }
MastersServiceServer is the server API for MastersService service. All implementations must embed UnimplementedMastersServiceServer for forward compatibility
type RegisterMasterIn ¶ added in v0.0.6
type RegisterMasterIn struct { UserID uint64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` Info string `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
func (*RegisterMasterIn) Descriptor
deprecated
added in
v0.0.6
func (*RegisterMasterIn) Descriptor() ([]byte, []int)
Deprecated: Use RegisterMasterIn.ProtoReflect.Descriptor instead.
func (*RegisterMasterIn) GetInfo ¶ added in v0.0.6
func (x *RegisterMasterIn) GetInfo() string
func (*RegisterMasterIn) GetUserID ¶ added in v0.0.7
func (x *RegisterMasterIn) GetUserID() uint64
func (*RegisterMasterIn) ProtoMessage ¶ added in v0.0.6
func (*RegisterMasterIn) ProtoMessage()
func (*RegisterMasterIn) ProtoReflect ¶ added in v0.0.6
func (x *RegisterMasterIn) ProtoReflect() protoreflect.Message
func (*RegisterMasterIn) Reset ¶ added in v0.0.6
func (x *RegisterMasterIn) Reset()
func (*RegisterMasterIn) String ¶ added in v0.0.6
func (x *RegisterMasterIn) String() string
type RegisterMasterOut ¶ added in v0.0.6
type RegisterMasterOut struct { MasterID uint64 `protobuf:"varint,1,opt,name=masterID,proto3" json:"masterID,omitempty"` // contains filtered or unexported fields }
func (*RegisterMasterOut) Descriptor
deprecated
added in
v0.0.6
func (*RegisterMasterOut) Descriptor() ([]byte, []int)
Deprecated: Use RegisterMasterOut.ProtoReflect.Descriptor instead.
func (*RegisterMasterOut) GetMasterID ¶ added in v0.0.6
func (x *RegisterMasterOut) GetMasterID() uint64
func (*RegisterMasterOut) ProtoMessage ¶ added in v0.0.6
func (*RegisterMasterOut) ProtoMessage()
func (*RegisterMasterOut) ProtoReflect ¶ added in v0.0.6
func (x *RegisterMasterOut) ProtoReflect() protoreflect.Message
func (*RegisterMasterOut) Reset ¶ added in v0.0.6
func (x *RegisterMasterOut) Reset()
func (*RegisterMasterOut) String ¶ added in v0.0.6
func (x *RegisterMasterOut) String() string
type TagsServiceClient ¶
type TagsServiceClient interface { GetTag(ctx context.Context, in *GetTagIn, opts ...grpc.CallOption) (*GetTagOut, error) GetTags(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetTagsOut, error) }
TagsServiceClient is the client API for TagsService 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 NewTagsServiceClient ¶
func NewTagsServiceClient(cc grpc.ClientConnInterface) TagsServiceClient
type TagsServiceServer ¶
type TagsServiceServer interface { GetTag(context.Context, *GetTagIn) (*GetTagOut, error) GetTags(context.Context, *emptypb.Empty) (*GetTagsOut, error) // contains filtered or unexported methods }
TagsServiceServer is the server API for TagsService service. All implementations must embed UnimplementedTagsServiceServer for forward compatibility
type ToysServiceClient ¶
type ToysServiceClient interface { AddToy(ctx context.Context, in *AddToyIn, opts ...grpc.CallOption) (*AddToyOut, error) GetToy(ctx context.Context, in *GetToyIn, opts ...grpc.CallOption) (*GetToyOut, error) GetToys(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetToysOut, error) GetMasterToys(ctx context.Context, in *GetMasterToysIn, opts ...grpc.CallOption) (*GetToysOut, error) GetUserToys(ctx context.Context, in *GetUserToysIn, opts ...grpc.CallOption) (*GetToysOut, error) }
ToysServiceClient is the client API for ToysService 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 NewToysServiceClient ¶
func NewToysServiceClient(cc grpc.ClientConnInterface) ToysServiceClient
type ToysServiceServer ¶
type ToysServiceServer interface { AddToy(context.Context, *AddToyIn) (*AddToyOut, error) GetToy(context.Context, *GetToyIn) (*GetToyOut, error) GetToys(context.Context, *emptypb.Empty) (*GetToysOut, error) GetMasterToys(context.Context, *GetMasterToysIn) (*GetToysOut, error) GetUserToys(context.Context, *GetUserToysIn) (*GetToysOut, error) // contains filtered or unexported methods }
ToysServiceServer is the server API for ToysService service. All implementations must embed UnimplementedToysServiceServer for forward compatibility
type UnimplementedCategoriesServiceServer ¶
type UnimplementedCategoriesServiceServer struct { }
UnimplementedCategoriesServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCategoriesServiceServer) GetCategories ¶
func (UnimplementedCategoriesServiceServer) GetCategories(context.Context, *emptypb.Empty) (*GetCategoriesOut, error)
func (UnimplementedCategoriesServiceServer) GetCategory ¶
func (UnimplementedCategoriesServiceServer) GetCategory(context.Context, *GetCategoryIn) (*GetCategoryOut, error)
type UnimplementedMastersServiceServer ¶
type UnimplementedMastersServiceServer struct { }
UnimplementedMastersServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMastersServiceServer) GetMaster ¶
func (UnimplementedMastersServiceServer) GetMaster(context.Context, *GetMasterIn) (*GetMasterOut, error)
func (UnimplementedMastersServiceServer) GetMasterByUser ¶ added in v0.0.7
func (UnimplementedMastersServiceServer) GetMasterByUser(context.Context, *GetMasterByUserIn) (*GetMasterOut, error)
func (UnimplementedMastersServiceServer) GetMasters ¶
func (UnimplementedMastersServiceServer) GetMasters(context.Context, *emptypb.Empty) (*GetMastersOut, error)
func (UnimplementedMastersServiceServer) RegisterMaster ¶
func (UnimplementedMastersServiceServer) RegisterMaster(context.Context, *RegisterMasterIn) (*RegisterMasterOut, error)
type UnimplementedTagsServiceServer ¶
type UnimplementedTagsServiceServer struct { }
UnimplementedTagsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTagsServiceServer) GetTags ¶
func (UnimplementedTagsServiceServer) GetTags(context.Context, *emptypb.Empty) (*GetTagsOut, error)
type UnimplementedToysServiceServer ¶
type UnimplementedToysServiceServer struct { }
UnimplementedToysServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedToysServiceServer) GetMasterToys ¶ added in v0.0.3
func (UnimplementedToysServiceServer) GetMasterToys(context.Context, *GetMasterToysIn) (*GetToysOut, error)
func (UnimplementedToysServiceServer) GetToys ¶
func (UnimplementedToysServiceServer) GetToys(context.Context, *emptypb.Empty) (*GetToysOut, error)
func (UnimplementedToysServiceServer) GetUserToys ¶ added in v0.0.8
func (UnimplementedToysServiceServer) GetUserToys(context.Context, *GetUserToysIn) (*GetToysOut, error)
type UnsafeCategoriesServiceServer ¶
type UnsafeCategoriesServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCategoriesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CategoriesServiceServer will result in compilation errors.
type UnsafeMastersServiceServer ¶
type UnsafeMastersServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMastersServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MastersServiceServer will result in compilation errors.
type UnsafeTagsServiceServer ¶
type UnsafeTagsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTagsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TagsServiceServer will result in compilation errors.
type UnsafeToysServiceServer ¶
type UnsafeToysServiceServer interface {
// contains filtered or unexported methods
}
UnsafeToysServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ToysServiceServer will result in compilation errors.