mongodbdriver

package
v0.1.7-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeysMongoDBDriver

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

index - keytype (private, jwks) value - string(bytes)

func NewKeysStorage

func NewKeysStorage(lg *slog.Logger) (*KeysMongoDBDriver, error)

func (KeysMongoDBDriver) ReadKeys

func (s KeysMongoDBDriver) ReadKeys() (*storage.Keys, error)

func (KeysMongoDBDriver) WriteKeys

func (s KeysMongoDBDriver) WriteKeys(k storage.Keys) error

type UsersMongoDBDriver

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

func NewUsersStorage

func NewUsersStorage(lg *slog.Logger) (*UsersMongoDBDriver, error)

TODO what if both keydata and userdata want to share the same connection? storage.Session {} interface with open/close?

func (UsersMongoDBDriver) ReadUserData

func (s UsersMongoDBDriver) ReadUserData(username string) (*storage.UserData, error)

func (UsersMongoDBDriver) WriteUserData

func (s UsersMongoDBDriver) WriteUserData(user storage.UserData) error

Jump to

Keyboard shortcuts

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