Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenValidator ¶
type TokenValidator interface {
Set(id string, value interface{}, period time.Duration) error
Has(id string) (bool, error)
Get(id string) (interface{}, bool)
Delete(id string) error
}
TokenValidator interface
type TokenValidatorService ¶
type TokenValidatorService struct {
gocachetimed.Cache
}
TokenValidatorService struct
func NewTokenValidatorService ¶
func NewTokenValidatorService() *TokenValidatorService
NewTokenValidatorService creates a new token validator service
func (*TokenValidatorService) Delete ¶
func (t *TokenValidatorService) Delete(id string) error
Delete deletes a token from the cache
func (*TokenValidatorService) Get ¶
func (t *TokenValidatorService) Get(id string) (interface{}, bool)
Get gets a token from the cache
Click to show internal directories.
Click to hide internal directories.