usecase

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL