Documentation
¶
Index ¶
- type Config
- type MemoryStorage
- func (s *MemoryStorage) AuthCodeCreate(a storage.AuthCode) error
- func (s *MemoryStorage) AuthCodeDelete(uid string) error
- func (s *MemoryStorage) AuthCodeRead(uid string) (a storage.AuthCode, err error)
- func (s *MemoryStorage) AuthRequestCreate(a storage.AuthRequest) error
- func (s *MemoryStorage) AuthRequestDelete(uid string) error
- func (s *MemoryStorage) AuthRequestRead(uid string) (a storage.AuthRequest, err error)
- func (s *MemoryStorage) AuthRequestUpdate(uid string, updater func(a storage.AuthRequest) (storage.AuthRequest, error)) error
- func (s *MemoryStorage) Close() error
- func (s *MemoryStorage) ProviderCreate(pid string) error
- func (s *MemoryStorage) UserCreate(pid string, c storage.Credentials) error
- func (s *MemoryStorage) UserDelete(pid string, uid string) error
- func (s *MemoryStorage) UserRead(pid string, uid string) (c storage.Credentials, err error)
- func (s *MemoryStorage) UserUpdate(pid string, uid string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.