Documentation ¶
Overview ¶
Copyright 2022-2023 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0
Copyright 2022-2023 Contributors to the Veraison project. SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- type Config
- type ISessionManager
- type SessionManagerTTLCache
- func (o *SessionManagerTTLCache) Close() error
- func (o *SessionManagerTTLCache) DelSession(id uuid.UUID, tenant string) error
- func (o *SessionManagerTTLCache) GetSession(id uuid.UUID, tenant string) (json.RawMessage, error)
- func (o *SessionManagerTTLCache) Init(cfg Config) error
- func (o *SessionManagerTTLCache) SetSession(id uuid.UUID, tenant string, session json.RawMessage, ttl time.Duration) error
Constants ¶
View Source
const DefaultTTL = time.Minute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ISessionManager ¶
type SessionManagerTTLCache ¶
type SessionManagerTTLCache struct {
// contains filtered or unexported fields
}
func NewSessionManagerTTLCache ¶
func NewSessionManagerTTLCache() *SessionManagerTTLCache
func (*SessionManagerTTLCache) Close ¶
func (o *SessionManagerTTLCache) Close() error
func (*SessionManagerTTLCache) DelSession ¶
func (o *SessionManagerTTLCache) DelSession(id uuid.UUID, tenant string) error
func (*SessionManagerTTLCache) GetSession ¶
func (o *SessionManagerTTLCache) GetSession(id uuid.UUID, tenant string) (json.RawMessage, error)
func (*SessionManagerTTLCache) Init ¶
func (o *SessionManagerTTLCache) Init(cfg Config) error
func (*SessionManagerTTLCache) SetSession ¶
func (o *SessionManagerTTLCache) SetSession(id uuid.UUID, tenant string, session json.RawMessage, ttl time.Duration) error
Click to show internal directories.
Click to hide internal directories.