Documentation ¶
Index ¶
- func Init()
- type ClientSeed
- func (s *ClientSeed) Add(accountID uint64, keyID int64, val []byte, expire time.Duration) error
- func (s *ClientSeed) Get(accountID uint64, keyID int64) ([]byte, error)
- func (s *ClientSeed) Lock(accountID uint64, reason string, duration time.Duration) error
- func (s *ClientSeed) Refresh(accountID uint64, keyID int64, _ time.Duration) ([]byte, error)
- func (s *ClientSeed) Revoke(accountID uint64, keyID int64) error
- func (s *ClientSeed) RevokeAll(accountID uint64) error
- func (s *ClientSeed) Unlock(accountID uint64) error
- type ServerSeed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.