Documentation ¶ Index ¶ type Usecase func New() *Usecase func (u Usecase) Check(username, pw, token string) error func (u Usecase) Create(name, pws string) (*schema.User, []byte, error) func (u Usecase) Delete(name string) error func (u Usecase) Get(username string) (schema.User, error) func (u Usecase) GetAll() ([]schema.User, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Usecase ¶ type Usecase struct { // contains filtered or unexported fields } Usecase does nondatabase-y things func New ¶ func New() *Usecase func (Usecase) Check ¶ func (u Usecase) Check(username, pw, token string) error func (Usecase) Create ¶ func (u Usecase) Create(name, pws string) (*schema.User, []byte, error) func (Usecase) Delete ¶ func (u Usecase) Delete(name string) error func (Usecase) Get ¶ func (u Usecase) Get(username string) (schema.User, error) func (Usecase) GetAll ¶ func (u Usecase) GetAll() ([]schema.User, error) Source Files ¶ View all Source files usecase.go Click to show internal directories. Click to hide internal directories.