acslater

package module
v0.0.0-...-4e35831 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2014 License: MIT Imports: 5 Imported by: 0

README

#acslater

a simple auth cache that expires

he'll tell you who's currently cool

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL