Documentation
¶
Index ¶
- type UserAuthTokenService
- func (s *UserAuthTokenService) ActiveTokenCount() (int64, error)
- func (s *UserAuthTokenService) CreateToken(userId int64, clientIP, userAgent string) (*models.UserToken, error)
- func (s *UserAuthTokenService) Init() error
- func (s *UserAuthTokenService) LookupToken(unhashedToken string) (*models.UserToken, error)
- func (s *UserAuthTokenService) RevokeToken(token *models.UserToken) error
- func (srv *UserAuthTokenService) Run(ctx context.Context) error
- func (s *UserAuthTokenService) TryRotateToken(token *models.UserToken, clientIP, userAgent string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserAuthTokenService ¶
type UserAuthTokenService struct {
SQLStore *sqlstore.SqlStore `inject:""`
ServerLockService *serverlock.ServerLockService `inject:""`
Cfg *setting.Cfg `inject:""`
// contains filtered or unexported fields
}
func (*UserAuthTokenService) ActiveTokenCount ¶
func (s *UserAuthTokenService) ActiveTokenCount() (int64, error)
func (*UserAuthTokenService) CreateToken ¶
func (*UserAuthTokenService) Init ¶
func (s *UserAuthTokenService) Init() error
func (*UserAuthTokenService) LookupToken ¶
func (s *UserAuthTokenService) LookupToken(unhashedToken string) (*models.UserToken, error)
func (*UserAuthTokenService) RevokeToken ¶
func (s *UserAuthTokenService) RevokeToken(token *models.UserToken) error
func (*UserAuthTokenService) TryRotateToken ¶
Click to show internal directories.
Click to hide internal directories.