mong

package
v0.0.0-...-be2d88d Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func New

func New(ctx context.Context, rwTimeout time.Duration, db *mongo.Database) *Repo

func (Repo) GetUser

func (r Repo) GetUser(s string) *model.User

func (Repo) GetUsers

func (r Repo) GetUsers() []*model.User

func (Repo) SaveUser

func (r Repo) SaveUser(user *model.User) *model.User

Jump to

Keyboard shortcuts

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