Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateParams ¶
type FullUpdateParams ¶
type PartialUpdateParams ¶
type Repository ¶
type Repository interface { Create(params *CreateParams) (models.Board, error) List(userId int) ([]models.Board, error) Get(id int) (models.Board, error) FullUpdate(params *FullUpdateParams) (models.Board, error) PartialUpdate(params *PartialUpdateParams) (models.Board, error) Delete(id int) error AddPin(boardId, pinId int) error PinsList(boardId int, page, limit int) ([]models.Pin, error) RemovePin(boardId, pinId int) error HasPin(boardId, pinId int) (bool, error) CheckWriteAccess(userId, boardId string) (bool, error) CheckReadAccess(userId, boardId string) (bool, error) }
type Service ¶
type Service interface { Create(params *CreateParams) (models.Board, error) List(userId int) ([]models.Board, error) Get(id int) (models.Board, error) FullUpdate(params *FullUpdateParams) (models.Board, error) PartialUpdate(params *PartialUpdateParams) (models.Board, error) Delete(id int) error AddPin(boardId, pinId int) error PinsList(userId, boardId int, page, limit int) ([]models.Pin, error) RemovePin(boardId, pinId int) error CheckWriteAccess(userId, boardId string) (bool, error) CheckReadAccess(userId, boardId string) (bool, error) }
Click to show internal directories.
Click to hide internal directories.