README ¶ #acslater a simple auth cache that expires he'll tell you who's currently cool Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type AuthCache func NewAuthCache(expiration time.Duration) *AuthCache func (a *AuthCache) Check(token string) bool func (a *AuthCache) Clear() func (a *AuthCache) Delete(token string) func (a *AuthCache) Set(token string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type AuthCache ¶ type AuthCache struct { sync.Mutex // contains filtered or unexported fields } func NewAuthCache ¶ func NewAuthCache(expiration time.Duration) *AuthCache func (*AuthCache) Check ¶ func (a *AuthCache) Check(token string) bool func (*AuthCache) Clear ¶ func (a *AuthCache) Clear() func (*AuthCache) Delete ¶ func (a *AuthCache) Delete(token string) func (*AuthCache) Set ¶ func (a *AuthCache) Set(token string) Source Files ¶ View all Source files acslater.go Click to show internal directories. Click to hide internal directories.