user

package
v0.0.0-...-e9d4ddd Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetUsers() ([]*models.User, error)
	GetUser(ID string) (*models.User, error)
	GetUserByUsername(username string) (*models.User, error)
	CreateUser(user models.Register) (string, error)
}

Repository represent the user's repository contract

type Usecase

type Usecase interface {
	Login(login models.Login) (string, error)
	Register(user models.Register) (string, error)
	Users() ([]*models.User, error)
	User(ID string) (*models.User, error)
}

Usecase represent the user

Directories

Path Synopsis
delivery

Jump to

Keyboard shortcuts

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