toys

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
var File_toys_categories_proto protoreflect.FileDescriptor
View Source
var File_toys_masters_proto protoreflect.FileDescriptor
View Source
var File_toys_tags_proto protoreflect.FileDescriptor
View Source
var File_toys_toys_proto protoreflect.FileDescriptor
View Source
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)

View Source
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)

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use AddToyIn.ProtoReflect.Descriptor instead.

func (*AddToyIn) GetAttachments added in v0.0.9

func (x *AddToyIn) GetAttachments() []string

func (*AddToyIn) GetCategoryID added in v0.0.6

func (x *AddToyIn) GetCategoryID() uint32

func (*AddToyIn) GetDescription added in v0.0.6

func (x *AddToyIn) GetDescription() string

func (*AddToyIn) GetName added in v0.0.6

func (x *AddToyIn) GetName() string

func (*AddToyIn) GetPrice added in v0.0.6

func (x *AddToyIn) GetPrice() float32

func (*AddToyIn) GetQuantity added in v0.0.6

func (x *AddToyIn) GetQuantity() uint32

func (*AddToyIn) GetTagIDs added in v0.0.6

func (x *AddToyIn) GetTagIDs() []uint32

func (*AddToyIn) GetUserID added in v0.0.7

func (x *AddToyIn) GetUserID() uint64

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

func (*AddToyIn) Reset added in v0.0.6

func (x *AddToyIn) Reset()

func (*AddToyIn) String added in v0.0.6

func (x *AddToyIn) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use AddToyOut.ProtoReflect.Descriptor instead.

func (*AddToyOut) GetToyID added in v0.0.6

func (x *AddToyOut) GetToyID() uint64

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

func (*AddToyOut) Reset added in v0.0.6

func (x *AddToyOut) Reset()

func (*AddToyOut) String added in v0.0.6

func (x *AddToyOut) String() string

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 (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.

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) Descriptor() ([]byte, []int)

Deprecated: Use GetTagIn.ProtoReflect.Descriptor instead.

func (*GetTagIn) GetID added in v0.0.6

func (x *GetTagIn) GetID() uint32

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

func (*GetTagIn) Reset added in v0.0.6

func (x *GetTagIn) Reset()

func (*GetTagIn) String added in v0.0.6

func (x *GetTagIn) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use GetTagOut.ProtoReflect.Descriptor instead.

func (*GetTagOut) GetCreatedAt added in v0.0.6

func (x *GetTagOut) GetCreatedAt() *timestamppb.Timestamp

func (*GetTagOut) GetID added in v0.0.6

func (x *GetTagOut) GetID() uint32

func (*GetTagOut) GetName added in v0.0.6

func (x *GetTagOut) GetName() string

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

func (*GetTagOut) Reset added in v0.0.6

func (x *GetTagOut) Reset()

func (*GetTagOut) String added in v0.0.6

func (x *GetTagOut) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use GetToyIn.ProtoReflect.Descriptor instead.

func (*GetToyIn) GetID added in v0.0.6

func (x *GetToyIn) GetID() uint64

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

func (*GetToyIn) Reset added in v0.0.6

func (x *GetToyIn) Reset()

func (*GetToyIn) String added in v0.0.6

func (x *GetToyIn) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use GetToyOut.ProtoReflect.Descriptor instead.

func (*GetToyOut) GetAttachments added in v0.0.9

func (x *GetToyOut) GetAttachments() []*Attachment

func (*GetToyOut) GetCategoryID added in v0.0.6

func (x *GetToyOut) GetCategoryID() uint32

func (*GetToyOut) GetCreatedAt added in v0.0.6

func (x *GetToyOut) GetCreatedAt() *timestamppb.Timestamp

func (*GetToyOut) GetDescription added in v0.0.6

func (x *GetToyOut) GetDescription() string

func (*GetToyOut) GetID added in v0.0.6

func (x *GetToyOut) GetID() uint64

func (*GetToyOut) GetMasterID added in v0.0.6

func (x *GetToyOut) GetMasterID() uint64

func (*GetToyOut) GetName added in v0.0.6

func (x *GetToyOut) GetName() string

func (*GetToyOut) GetPrice added in v0.0.6

func (x *GetToyOut) GetPrice() float32

func (*GetToyOut) GetQuantity added in v0.0.6

func (x *GetToyOut) GetQuantity() uint32

func (*GetToyOut) GetTags added in v0.0.6

func (x *GetToyOut) GetTags() []*GetTagOut

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

func (*GetToyOut) Reset added in v0.0.6

func (x *GetToyOut) Reset()

func (*GetToyOut) String added in v0.0.6

func (x *GetToyOut) String() string

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.

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.

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.

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

type UnimplementedMastersServiceServer

type UnimplementedMastersServiceServer struct {
}

UnimplementedMastersServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMastersServiceServer) GetMaster

func (UnimplementedMastersServiceServer) GetMasterByUser added in v0.0.7

func (UnimplementedMastersServiceServer) GetMasters

func (UnimplementedMastersServiceServer) RegisterMaster

type UnimplementedTagsServiceServer

type UnimplementedTagsServiceServer struct {
}

UnimplementedTagsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTagsServiceServer) GetTag

func (UnimplementedTagsServiceServer) GetTags

type UnimplementedToysServiceServer

type UnimplementedToysServiceServer struct {
}

UnimplementedToysServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedToysServiceServer) AddToy

func (UnimplementedToysServiceServer) GetMasterToys added in v0.0.3

func (UnimplementedToysServiceServer) GetToy

func (UnimplementedToysServiceServer) GetToys

func (UnimplementedToysServiceServer) GetUserToys added in v0.0.8

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.

Jump to

Keyboard shortcuts

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