Documentation ¶ Index ¶ Variables type Service func NewService(secret string, expHours int, users storage.UserRepository) *Service func (s *Service) Login(ctx context.Context, email, password string) (string, error) Constants ¶ This section is empty. Variables ¶ View Source var ErrInvalidCredentials = errors.New("credenciais inválidas") Functions ¶ This section is empty. Types ¶ type Service ¶ type Service struct { // contains filtered or unexported fields } func NewService ¶ func NewService(secret string, expHours int, users storage.UserRepository) *Service func (*Service) Login ¶ func (s *Service) Login(ctx context.Context, email, password string) (string, error) Source Files ¶ View all Source files service.go Click to show internal directories. Click to hide internal directories.