database

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserDB

func NewUserDB() core.UserDatabase

NewUserDB is the constructor for UserDB.

Types

type UserDB

type UserDB struct{}

UserDB implements core.UserDatabase using mongodb.

func (*UserDB) GetUser

func (u *UserDB) GetUser(ctx context.Context, userID string) (*core.UserDoc, error)

func (*UserDB) SetUser

func (u *UserDB) SetUser(ctx context.Context, userDoc *core.UserDoc) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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