store

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("client id could not be found")

Functions

This section is empty.

Types

type Cache

type Cache struct {
	Store
	TTL time.Duration
	// contains filtered or unexported fields
}

func (*Cache) GetClientID

func (s *Cache) GetClientID(ctx context.Context, ID string) (models.ClientID, error)

type Default

type Default = LocalStore

type LocalStore

type LocalStore map[string]models.ClientID

func NewLocal

func NewLocal() LocalStore

func (LocalStore) Add

func (s LocalStore) Add(cid models.ClientID) LocalStore

func (LocalStore) GetClientID

func (s LocalStore) GetClientID(ctx context.Context, ID string) (models.ClientID, error)

type Store

type Store interface {
	GetClientID(ctx context.Context, ID string) (models.ClientID, error)
}

func NewS3Store

func NewS3Store(cp client.ConfigProvider, arn arn.ARN) Store

Jump to

Keyboard shortcuts

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