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