Documentation ¶
Index ¶
- func NewStorage(opts StorageOpts) storage.Storage
- type Storage
- func (s *Storage) Abandon(ctx context.Context, accessToken string) (bool, error)
- func (s *Storage) Collect(in chan<- prometheus.Metric)
- func (s *Storage) Delete(ctx context.Context, subjectID, accessToken, refreshToken string, ...) (int64, error)
- func (s *Storage) Describe(in chan<- *prometheus.Desc)
- func (s *Storage) Exists(ctx context.Context, accessToken string) (exists bool, err error)
- func (s *Storage) Get(ctx context.Context, accessToken string) (*mnemosynerpc.Session, error)
- func (s *Storage) List(ctx context.Context, offset, limit int64, ...) ([]*mnemosynerpc.Session, error)
- func (s *Storage) SetValue(ctx context.Context, accessToken string, key, value string) (map[string]string, error)
- func (s *Storage) Setup() error
- func (s *Storage) Start(ctx context.Context, accessToken, refreshToken, sid, sc string, ...) (*mnemosynerpc.Session, error)
- func (s *Storage) TearDown() error
- type StorageOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorage ¶
func NewStorage(opts StorageOpts) storage.Storage
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) Collect ¶
func (s *Storage) Collect(in chan<- prometheus.Metric)
Collect implements prometheus Collector interface.
func (*Storage) Delete ¶
func (s *Storage) Delete(ctx context.Context, subjectID, accessToken, refreshToken string, expiredAtFrom, expiredAtTo *time.Time) (int64, error)
Delete implements storage interface.
func (*Storage) Describe ¶
func (s *Storage) Describe(in chan<- *prometheus.Desc)
Describe implements prometheus Collector interface.
func (*Storage) List ¶
func (s *Storage) List(ctx context.Context, offset, limit int64, expiredAtFrom, expiredAtTo *time.Time) ([]*mnemosynerpc.Session, error)
sessionManagerList implements storage interface.
func (*Storage) SetValue ¶
func (s *Storage) SetValue(ctx context.Context, accessToken string, key, value string) (map[string]string, error)
SetValue implements storage interface.
Click to show internal directories.
Click to hide internal directories.