usersmongodb

package
v0.1.6-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsersStorage

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

func New

func New(lg *slog.Logger, url, database, collection string) (*UsersStorage, error)

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

func (*UsersStorage) ReadUserData

func (u *UsersStorage) ReadUserData(username string) (*storage.UserData, error)

func (*UsersStorage) WriteUserData

func (u *UsersStorage) WriteUserData(user storage.UserData) error

Jump to

Keyboard shortcuts

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