Documentation
¶
Index ¶
- type Service
- func (s *Service) CreateUser(username, email, password string) (*database.User, error)
- func (s *Service) DeleteUser(id string) error
- func (s *Service) GetUserByEmail(email string) (*database.User, error)
- func (s *Service) GetUserById(id string) (*database.GetUserByIdRow, error)
- func (s *Service) GetUserWatchlist(id string, first *int, after *string) (*model.WatchlistConnection, error)
- func (s *Service) UpdateUserPassword(id, newPassword string) 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
}
func NewService ¶
func NewService(queries *database.Queries, worker spaceflake.Worker) *Service
func (*Service) CreateUser ¶
func (*Service) DeleteUser ¶
func (*Service) GetUserByEmail ¶
func (*Service) GetUserById ¶
func (s *Service) GetUserById(id string) (*database.GetUserByIdRow, error)
func (*Service) GetUserWatchlist ¶
func (*Service) UpdateUserPassword ¶
Click to show internal directories.
Click to hide internal directories.