Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDatabase ¶
type IDatabase interface { InsertUser(t User) error FindUser(u uuid.UUID) (User, error) UpdateUser(t User, u uuid.UUID) error DeleteUser(u uuid.UUID) error }
IDatabase list the methods a database needs to implement, in order to work with user's package.
type IService ¶
type IService interface { CreateUser(u *User) (User, error) ReadUser(u uuid.UUID) (t User, err error) UpdateUser(t *User, u uuid.UUID) error DeleteUser(u uuid.UUID) error }
IService lists the methods the user service implements.
func NewService ¶
NewService returns a pointer to new instance of the user service.
Click to show internal directories.
Click to hide internal directories.