Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MemoryStore ¶ added in v0.4.2
type MemoryStore struct {
// contains filtered or unexported fields
}
func NewMemoryStore ¶ added in v0.4.2
func NewMemoryStore() *MemoryStore
func (*MemoryStore) Debug ¶ added in v0.4.6
func (s *MemoryStore) Debug(l logger.Logger)
func (*MemoryStore) GetToken ¶ added in v0.4.2
func (s *MemoryStore) GetToken(token string) *token.Token
func (*MemoryStore) LeaseToken ¶ added in v0.4.2
func (s *MemoryStore) LeaseToken(token string) *token.Token
租把这个token租出去
func (*MemoryStore) ReturnToken ¶ added in v0.4.2
func (s *MemoryStore) ReturnToken(tk *token.Token)
还回来
Click to show internal directories.
Click to hide internal directories.