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)
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
Click to show internal directories.
Click to hide internal directories.