repository

package
v0.0.0-...-3df5b1d Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 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 Mongo

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

Mongo is an implementation of the profile repository backed by a MongoDB

func NewMongo

func NewMongo(db *mongo.Collection) *Mongo

NewMongo creates and returns a pointer to Mongo

func (*Mongo) Create

func (m *Mongo) Create(profile *models.Profile) error

Create add a profile to mongodb db

Jump to

Keyboard shortcuts

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