Documentation ¶
Index ¶
- type Category
- type Service
- func (s *Service) CreateCategory(ctx context.Context, u *users.User, name string) (*Category, error)
- func (s *Service) DeleteCategory(ctx context.Context, cat *Category) error
- func (s *Service) GetCategory(ctx context.Context, UUID uuid.UUID) (*Category, error)
- func (s *Service) GetUserCategories(ctx context.Context, u *users.User) ([]*Category, error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CreateCategory ¶
func (*Service) DeleteCategory ¶
func (*Service) GetCategory ¶ added in v0.3.0
type Store ¶
type Store interface { SaveCategory(ctx context.Context, cat *Category) error DeleteCategory(ctx context.Context, cat *Category) error GetCategory(ctx context.Context, uuid uuid.UUID) (*Category, error) GetUserCategories(ctx context.Context, u *users.User) ([]*Category, error) }
func NewGormStore ¶
Click to show internal directories.
Click to hide internal directories.