Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCreateUser = fmt.Errorf("service failed to create user") ErrDeleteUser = fmt.Errorf("service failed to delete user") ErrUpdateUser = fmt.Errorf("service failed to update user") ErrNoUserFound = fmt.Errorf("service failed to get user") ErrNoUsersFound = fmt.Errorf("service failed to get users") )
Functions ¶
This section is empty.
Types ¶
type CreateUserRequest ¶
type DeleteUserRequest ¶
type DeleteUserRequest struct {
ID int64
}
type UpdateUserRequest ¶
type UpdateUserRequest struct { ID int64 Update CreateUserRequest }
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService() UserService
Click to show internal directories.
Click to hide internal directories.