Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("postgres: record not found in the table") ErrAlreadyExists = errors.New("postgres: record already exists in the table") )
Functions ¶
This section is empty.
Types ¶
type CreateUserOpts ¶
type UserService ¶
type UserService interface { GetById(context.Context, int64) (User, error) GetByEmail(context.Context, string) (User, error) Create(context.Context, CreateUserOpts) (int64, time.Time, error) EditEmail(context.Context, int64, string) error EditName(context.Context, int64, string) error EditPassword(context.Context, int64, string) error Delete(context.Context, int64) error }
func NewUserService ¶
func NewUserService(ctx context.Context, svc Service) (UserService, error)
Click to show internal directories.
Click to hide internal directories.