repositories

package
v0.0.0-...-fd28bdc Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MongoCollectionName string = "items"

Functions

func NewFromItem

func NewFromItem(i item.Item) mongoItem

Types

type MongoRepository

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

func NewRepository

func NewRepository(ctx context.Context, connectionString string) (*MongoRepository, error)

func (*MongoRepository) Add

func (mr *MongoRepository) Add(i item.Item) error

Jump to

Keyboard shortcuts

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