repository

package
v0.0.0-...-cc2418b Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDb

func InitDb(cfg *mongoCfg.MongoConfig) (*mongo.Database, error)

Types

type Repository

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

func NewRepository

func NewRepository(db *mongo.Database, col string) *Repository

func (Repository) CreateUser

func (r Repository) CreateUser(ctx context.Context, u *model.User) error

func (Repository) GetUser

func (r Repository) GetUser(ctx context.Context, username, password string) (*model.User, error)

Jump to

Keyboard shortcuts

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