Documentation ¶ Index ¶ func Repo(r gadget.Repository) func(*Usecase) type Usecase func New(opts ...func(*Usecase)) *Usecase func (u Usecase) Create(name, url string) (*schema.Gadget, error) func (u Usecase) Get(id int) (schema.Gadget, error) func (u Usecase) GetAll() ([]schema.Gadget, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Repo ¶ func Repo(r gadget.Repository) func(*Usecase) Types ¶ type Usecase ¶ type Usecase struct { // contains filtered or unexported fields } Usecase does nondatabase-y things. func New ¶ func New(opts ...func(*Usecase)) *Usecase func (Usecase) Create ¶ func (u Usecase) Create(name, url string) (*schema.Gadget, error) func (Usecase) Get ¶ func (u Usecase) Get(id int) (schema.Gadget, error) func (Usecase) GetAll ¶ func (u Usecase) GetAll() ([]schema.Gadget, error) Source Files ¶ View all Source files usecase.go Click to show internal directories. Click to hide internal directories.