Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithID ¶
func WithID(id CategoryID) option
Types ¶
type Category ¶
type CategoryID ¶
func (CategoryID) String ¶
func (i CategoryID) String() string
type PostMeta ¶
func PostMetaFromModel ¶
type Repository ¶
type Repository interface { CreateCategory(ctx context.Context, name string, desc string, colour string, sort int, admin bool, opts ...option) (*Category, error) GetCategories(ctx context.Context, admin bool) ([]Category, error) UpdateCategory(ctx context.Context, id CategoryID, name, desc, colour *string, sort *int, admin *bool) (*Category, error) DeleteCategory(ctx context.Context, id CategoryID, moveto CategoryID) (*Category, error) }
func New ¶
func New(db *model.Client) Repository
Click to show internal directories.
Click to hide internal directories.