Documentation ¶
Index ¶
- Variables
- func WithDevice(handler func(models.Device, *fiber.Ctx) error) fiber.Handler
- func WithUser(handler func(models.User, *fiber.Ctx) error) fiber.Handler
- type Config
- type Mode
- type Params
- type Service
- func (s *Service) AuthorizeDevice(token string) (models.Device, error)
- func (s *Service) AuthorizeRegistration(token string) error
- func (s *Service) AuthorizeUser(username, password string) (models.User, error)
- func (s *Service) IsPublic() bool
- func (s *Service) RegisterDevice(user models.User, name, pushToken *string) (models.Device, error)
- func (s *Service) RegisterUser(login, password string) (models.User, error)
- func (s *Service) UpdateDevice(id, pushToken string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func WithDevice ¶ added in v1.10.0
Types ¶
type Params ¶
type Params struct { fx.In Config Config Users *repositories.UsersRepository DevicesSvc *devices.Service Logger *zap.Logger }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AuthorizeDevice ¶
func (*Service) AuthorizeRegistration ¶
func (*Service) AuthorizeUser ¶
func (*Service) RegisterDevice ¶
func (*Service) RegisterUser ¶
func (*Service) UpdateDevice ¶
Click to show internal directories.
Click to hide internal directories.