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