Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound occurs when item with given ID if not found ErrNotFound = goerrors.New("item not found") // ErrInvalid occurs when invalid action is requested ErrInvalid = goerrors.New("invalid") )
Functions ¶
This section is empty.
Types ¶
type ItemService ¶
type ItemService interface { Unmarsall([]byte) (Item, error) List(ctx context.Context, page, pageSize uint, sortKey string, sortAsc bool, filters map[string][]string) ([]Item, uint, error) Get(ctx context.Context, ID string) (Item, error) Create(ctx context.Context, o Item) (Item, error) Update(ctx context.Context, o Item) (Item, error) Delete(ctx context.Context, o Item) error }
ItemService retrieves item
Click to show internal directories.
Click to hide internal directories.