Documentation ¶
Index ¶
- type Reader
- type Repository
- type Service
- func (s *Service) ConsumeRegister(body []byte) error
- func (s *Service) GetUser(id int64) (*entity.User, error)
- func (s *Service) ListUsers() ([]*entity.User, error)
- func (s *Service) Register(email, password, username string) (int64, error)
- func (s *Service) SearchUsers(query string) ([]*entity.User, error)
- type UseCase
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader interface { Get(id int64) (*entity.User, error) Search(query string) ([]*entity.User, error) List() ([]*entity.User, error) }
Reader interface
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service interface
func (*Service) ConsumeRegister ¶
Consume register user
Click to show internal directories.
Click to hide internal directories.