user

package
v0.0.0-...-20a34b2 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: GPL-2.0 Imports: 2 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 {
	GetAll() ([]User, error)
	Get(nickname string) (User, error)
}

type Usecase

type Usecase interface {
	GetAll() ([]User, error)
	Get(nickName string) (User, error)
}

type User

type User struct {
	Id         string    `json:"id"`
	Nickname   string    `json:"nickname"`
	Email      string    `json:"email"`
	Password   string    `json:"password"`
	Created_at time.Time `json:"created_at"`
}

User Entity

func NewUser

func NewUser(nickname string, email string, password string) *User

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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