Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoriesRepository ¶
type CategoriesService ¶
type CategoriesService interface { CategoriesRepository }
type Controller ¶
type Controller interface { Run() Stop() }
type MastersRepository ¶
type MastersRepository interface { GetAllMasters(ctx context.Context) ([]entities.Master, error) GetMasterByID(ctx context.Context, id uint64) (*entities.Master, error) GetMasterByUserID(ctx context.Context, userID uint64) (*entities.Master, error) RegisterMaster(ctx context.Context, masterData entities.RegisterMasterDTO) (masterID uint64, err error) }
type MastersService ¶
type MastersService interface { MastersRepository }
type TagsRepository ¶
type TagsService ¶
type ToysRepository ¶
type ToysRepository interface { AddToy(ctx context.Context, toyData entities.AddToyDTO) (toyID uint64, err error) GetAllToys(ctx context.Context) ([]entities.Toy, error) GetToyByID(ctx context.Context, id uint64) (*entities.Toy, error) GetMasterToys(ctx context.Context, masterID uint64) ([]entities.Toy, error) }
type ToysService ¶
type ToysService interface { ToysRepository }
type UseCases ¶
type UseCases interface { TagsService CategoriesService GetAllMasters(ctx context.Context) ([]entities.Master, error) GetMasterByID(ctx context.Context, id uint64) (*entities.Master, error) GetMasterByUserID(ctx context.Context, userID uint64) (*entities.Master, error) RegisterMaster(ctx context.Context, rawMasterData entities.RegisterMasterDTO) (masterID uint64, err error) AddToy(ctx context.Context, rawToyData entities.RawAddToyDTO) (toyID uint64, err error) GetAllToys(ctx context.Context) ([]entities.Toy, error) GetToyByID(ctx context.Context, id uint64) (*entities.Toy, error) GetMasterToys(ctx context.Context, masterID uint64) ([]entities.Toy, error) }
Click to show internal directories.
Click to hide internal directories.