simplerepository

package
v0.0.0-...-6f4c623 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(db *mongo.Database) *Repository

func (*Repository) CreateUser

func (r *Repository) CreateUser(ctx context.Context, user User) (id primitive.ObjectID, err error)

type User

type User struct {
	FirstName string `bson:"firstName"`
	LastName  string `bson:"lastName"`
}

Jump to

Keyboard shortcuts

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