Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database is an implementation of Interface for database auth.
func NewDatabase ¶
NewDatabase init new database interface.
func (*Database) GetCurrentKey ¶
func (db *Database) GetCurrentKey() common.JWTKey
GetCurrentKey fetch latest key from cache, it should have privatekey.
func (*Database) GetKeys ¶
func (db *Database) GetKeys() []common.JWTKey
GetKeys fetch all keys from cache.
func (*Database) RefreshKeys ¶
RefreshKeys refresh the keys from database.
Click to show internal directories.
Click to hide internal directories.