Documentation ¶
Index ¶
- func EncodeIdentifier(identifier string) string
- type NoSuchIdentifierTokenPair
- type State
- func (s *State) AllKeys() ([][]byte, error)
- func (s *State) InsertToken(config config.Config, identifier string, token string) error
- func (s *State) InvalidateToken(identifier string, token string) error
- func (s *State) KeyForIdentifierTokenPair(identifier string, token string) ([]byte, error)
- func (s *State) TokensForIdentifier(identifier string) ([]string, error)
- type TooManyTokensIssued
- type ZerologBadgerLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeIdentifier ¶
Types ¶
type NoSuchIdentifierTokenPair ¶
type NoSuchIdentifierTokenPair struct{}
func (*NoSuchIdentifierTokenPair) Error ¶
func (e *NoSuchIdentifierTokenPair) Error() string
type State ¶
type State struct { DB *badger.DB RSAKeyPairs []myCrypto.PublicPrivateRSAKeyPair }
func (*State) InsertToken ¶
func (*State) InvalidateToken ¶
func (*State) KeyForIdentifierTokenPair ¶
type TooManyTokensIssued ¶
type TooManyTokensIssued struct{}
func (*TooManyTokensIssued) Error ¶
func (e *TooManyTokensIssued) Error() string
type ZerologBadgerLogger ¶
func (ZerologBadgerLogger) Debugf ¶
func (zl ZerologBadgerLogger) Debugf(format string, v ...interface{})
func (ZerologBadgerLogger) Errorf ¶
func (zl ZerologBadgerLogger) Errorf(format string, v ...interface{})
func (ZerologBadgerLogger) Infof ¶
func (zl ZerologBadgerLogger) Infof(format string, v ...interface{})
func (ZerologBadgerLogger) Warningf ¶
func (zl ZerologBadgerLogger) Warningf(format string, v ...interface{})
Click to show internal directories.
Click to hide internal directories.