memoryStorage

package
v0.0.0-...-f284455 Latest Latest
Warning

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

Go to latest
Published: May 19, 2019 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

func (*Config) New

func (c *Config) New() (storage.Storage, error)

type MemoryStorage

type MemoryStorage struct {
	// contains filtered or unexported fields
}

todo: decompose memory storage into separate storages according to their roles

func New

func New() MemoryStorage

func (*MemoryStorage) AuthCodeCreate

func (s *MemoryStorage) AuthCodeCreate(a storage.AuthCode) error

func (*MemoryStorage) AuthCodeDelete

func (s *MemoryStorage) AuthCodeDelete(uid string) error

func (*MemoryStorage) AuthCodeRead

func (s *MemoryStorage) AuthCodeRead(uid string) (a storage.AuthCode, err error)

func (*MemoryStorage) AuthRequestCreate

func (s *MemoryStorage) AuthRequestCreate(a storage.AuthRequest) error

func (*MemoryStorage) AuthRequestDelete

func (s *MemoryStorage) AuthRequestDelete(uid string) error

func (*MemoryStorage) AuthRequestRead

func (s *MemoryStorage) AuthRequestRead(uid string) (a storage.AuthRequest, err error)

func (*MemoryStorage) AuthRequestUpdate

func (s *MemoryStorage) AuthRequestUpdate(uid string, updater func(a storage.AuthRequest) (storage.AuthRequest, error)) error

func (*MemoryStorage) Close

func (s *MemoryStorage) Close() error

func (*MemoryStorage) ProviderCreate

func (s *MemoryStorage) ProviderCreate(pid string) error

func (*MemoryStorage) UserCreate

func (s *MemoryStorage) UserCreate(pid string, c storage.Credentials) error

func (*MemoryStorage) UserDelete

func (s *MemoryStorage) UserDelete(pid string, uid string) error

func (*MemoryStorage) UserRead

func (s *MemoryStorage) UserRead(pid string, uid string) (c storage.Credentials, err error)

func (*MemoryStorage) UserUpdate

func (s *MemoryStorage) UserUpdate(pid string, uid string, updater func(c storage.Credentials) (storage.Credentials, error)) error

Jump to

Keyboard shortcuts

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