db

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectionLocations

func CollectionLocations(ctx context.Context) (*mongo.Collection, error)

Types

type Hole

type Hole struct {
	Number int `bson:"number" json:"number"`
	Par    int `bson:"par" json:"par"`
	Index  int `bson:"index" json:"index"`
}

type Location

type Location struct {
	ID    string `bson:"_id" json:"id"`
	Name  string `bson:"name" json:"name"`
	Holes []Hole `bson:"holes" json:"holes"`
}

Jump to

Keyboard shortcuts

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