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: "test@22.com", 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
Click to show internal directories.
Click to hide internal directories.