 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type AnonAuth
- func (AnonAuth) AddRecord(uid types.Uid, secret []byte, lifetime time.Duration) (int, auth.AuthErr)
- func (AnonAuth) Authenticate(secret []byte) (types.Uid, int, time.Time, auth.AuthErr)
- func (AnonAuth) GenSecret(uid types.Uid, authLvl int, lifetime time.Duration) ([]byte, time.Time, auth.AuthErr)
- func (AnonAuth) Init(unused string) error
- func (AnonAuth) IsUnique(secret []byte) (bool, auth.AuthErr)
- func (AnonAuth) UpdateRecord(uid types.Uid, secret []byte, lifetime time.Duration) auth.AuthErr
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnonAuth ¶
type AnonAuth struct{}
    AnonAuth is the singleton instance of the anonymous authorizer.
func (AnonAuth) Authenticate ¶
Authenticate is not supported. It's used only at account creation time.
func (AnonAuth) GenSecret ¶
func (AnonAuth) GenSecret(uid types.Uid, authLvl int, lifetime time.Duration) ([]byte, time.Time, auth.AuthErr)
GenSecret always fails.
 Click to show internal directories. 
   Click to hide internal directories.