mock

package
v0.0.0-...-3eb4ebe Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicateEmail = errors.New("duplicate email")
	ErrRecordNotFound = errors.New("record not found")
)
View Source
var User = &repository.User{
	UserID:       22,
	Email:        "[email protected]",
	Password:     "test_1234!",
	PasswordHash: []byte("$2a$12$Wck7TSDfSYhn0GxOchYEJe3xX5w3MItslZPFUHRGbTYIQxjgHPHCe"),
}

Functions

This section is empty.

Types

type AccountRepository

type AccountRepository interface {
	CreateUser(ctx context.Context, user *repository.User) error
	GetUser(ctx context.Context, email string) (*repository.User, error)
	ServiceStatus(ctx context.Context) error
}

func NewAccountRepository

func NewAccountRepository() AccountRepository

Jump to

Keyboard shortcuts

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