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: 6 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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