Documentation ¶
Index ¶
Constants ¶
View Source
const (
MinKeyLen = 32
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedSession ¶ added in v0.8.0
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(store store.Store, sessionCache *SessionCache) (*Service, error)
func (*Service) Authenticate ¶
func (*Service) Unregister ¶
type SessionCache ¶ added in v0.8.0
type SessionCache struct {
// contains filtered or unexported fields
}
func NewSessionCache ¶ added in v0.8.0
func NewSessionCache(cfg SessionCacheConfig) (*SessionCache, error)
func (*SessionCache) Delete ¶ added in v0.8.0
func (t *SessionCache) Delete(clientID string)
func (*SessionCache) Get ¶ added in v0.8.0
func (t *SessionCache) Get(token string) (CachedSession, error)
func (*SessionCache) Put ¶ added in v0.8.0
func (t *SessionCache) Put(clientID, token string) error
type SessionCacheConfig ¶ added in v0.8.0
type SessionCacheConfig struct {
ExpirationMinutes int `toml:"expiration_minutes"`
}
func (SessionCacheConfig) IsValid ¶ added in v0.8.0
func (c SessionCacheConfig) IsValid() error
Click to show internal directories.
Click to hide internal directories.