Documentation ¶
Index ¶
- type CreateCakeParams
- type CreateCakeResult
- type CreateCakesService
- type CreateCakesServiceImpl
- type DeleteCakeParams
- type DeleteCakeResult
- type DeleteCakesService
- type DeleteCakesServiceImpl
- type GetCakeParams
- type GetCakeResult
- type GetCakesService
- type GetCakesServiceImpl
- type ListCakeParams
- type ListCakeResult
- type ListCakesService
- type ListCakesServiceImpl
- type UpdateCakeParams
- type UpdateCakeResult
- type UpdateCakesService
- type UpdateCakesServiceImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCakeParams ¶
type CreateCakeResult ¶
type CreateCakesService ¶
type CreateCakesService interface {
Call(ctx context.Context, params *CreateCakeParams) (*CreateCakeResult, error)
}
func NewCreateCakesService ¶
func NewCreateCakesService( repo repositories.CakesRepository, logger grpclog.LoggerV2, ) CreateCakesService
type CreateCakesServiceImpl ¶
type CreateCakesServiceImpl struct {
// contains filtered or unexported fields
}
func (*CreateCakesServiceImpl) Call ¶
func (s *CreateCakesServiceImpl) Call(ctx context.Context, params *CreateCakeParams) (res *CreateCakeResult, err error)
type DeleteCakeParams ¶
type DeleteCakeParams struct {
ID int
}
type DeleteCakeResult ¶
type DeleteCakesService ¶
type DeleteCakesService interface {
Call(ctx context.Context, params *DeleteCakeParams) (*DeleteCakeResult, error)
}
func NewDeleteCakesService ¶
func NewDeleteCakesService( repo repositories.CakesRepository, logger grpclog.LoggerV2, ) DeleteCakesService
type DeleteCakesServiceImpl ¶
type DeleteCakesServiceImpl struct {
// contains filtered or unexported fields
}
func (*DeleteCakesServiceImpl) Call ¶
func (s *DeleteCakesServiceImpl) Call(ctx context.Context, params *DeleteCakeParams) (res *DeleteCakeResult, err error)
type GetCakeParams ¶
type GetCakeParams struct {
ID int
}
type GetCakeResult ¶
type GetCakesService ¶
type GetCakesService interface {
Call(ctx context.Context, params *GetCakeParams) (*GetCakeResult, error)
}
func NewGetCakesService ¶
func NewGetCakesService( repo repositories.CakesRepository, logger grpclog.LoggerV2, ) GetCakesService
type GetCakesServiceImpl ¶
type GetCakesServiceImpl struct {
// contains filtered or unexported fields
}
func (*GetCakesServiceImpl) Call ¶
func (s *GetCakesServiceImpl) Call(ctx context.Context, params *GetCakeParams) (res *GetCakeResult, err error)
type ListCakeParams ¶
type ListCakeParams struct{}
type ListCakeResult ¶
type ListCakesService ¶
type ListCakesService interface {
Call(ctx context.Context) (res *ListCakeResult, err error)
}
func NewListCakesService ¶
func NewListCakesService( repo repositories.CakesRepository, logger grpclog.LoggerV2, ) ListCakesService
type ListCakesServiceImpl ¶
type ListCakesServiceImpl struct {
// contains filtered or unexported fields
}
func (*ListCakesServiceImpl) Call ¶
func (s *ListCakesServiceImpl) Call(ctx context.Context) (res *ListCakeResult, err error)
type UpdateCakeParams ¶
type UpdateCakeParams struct { ID int Title sql.NullString Description sql.NullString Rating sql.NullInt32 Image sql.NullString }
type UpdateCakeResult ¶
type UpdateCakesService ¶
type UpdateCakesService interface {
Call(ctx context.Context, params *UpdateCakeParams) (*UpdateCakeResult, error)
}
func NewUpdateCakesService ¶
func NewUpdateCakesService( repo repositories.CakesRepository, logger grpclog.LoggerV2, ) UpdateCakesService
type UpdateCakesServiceImpl ¶
type UpdateCakesServiceImpl struct {
// contains filtered or unexported fields
}
func (*UpdateCakesServiceImpl) Call ¶
func (s *UpdateCakesServiceImpl) Call(ctx context.Context, params *UpdateCakeParams) (res *UpdateCakeResult, err error)
Click to show internal directories.
Click to hide internal directories.