sessionmanager

package
v0.0.2409 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

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

View Source
const DefaultTTL = time.Minute

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config map[string]string

type ISessionManager

type ISessionManager interface {
	Init(cfg Config) error
	SetSession(id uuid.UUID, tenant string, session json.RawMessage, ttl time.Duration) error
	GetSession(id uuid.UUID, tenant string) (json.RawMessage, error)
	DelSession(id uuid.UUID, tenant string) error
	Close() error
}

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

Jump to

Keyboard shortcuts

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