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) ChangePassword(userID string, currentPassword string, newPassword string) 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 ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AuthorizeDevice ¶
func (*Service) AuthorizeRegistration ¶
func (*Service) AuthorizeUser ¶
func (*Service) ChangePassword ¶ added in v1.16.0
func (*Service) RegisterDevice ¶
func (*Service) RegisterUser ¶
func (*Service) UpdateDevice ¶
Click to show internal directories.
Click to hide internal directories.