db

package
v0.0.0-...-53af518 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 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 Dog

type Dog struct {
	Id       int64
	Name     string
	Owner    string
	Location string
}

type Repository

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

func New

func New(client *mongo.Client) *Repository

func (*Repository) GetAllDogs

func (r *Repository) GetAllDogs(ctx context.Context) ([]Dog, error)

Jump to

Keyboard shortcuts

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