Documentation
¶
Index ¶
- type Service
- func (s *Service) AddNewUser(user *model.User) error
- func (s *Service) DeleteUserByID(userID int) error
- func (s *Service) GetAllUsers() ([]*model.User, error)
- func (s *Service) GetUserByID(userID int) (*model.User, error)
- func (s *Service) ReplaceUser(user *model.User) error
- func (s *Service) UpdateUser(user *model.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defines service structure
func NewService ¶
NewService creates new service instance
func (*Service) AddNewUser ¶
AddNewUser handles add new user
func (*Service) DeleteUserByID ¶
DeleteUserByID handles delete user
func (*Service) GetAllUsers ¶
GetAllUsers handles get user by id
func (*Service) GetUserByID ¶
GetUserByID handles get users
func (*Service) ReplaceUser ¶
ReplaceUser handles update user
Click to show internal directories.
Click to hide internal directories.