locations

package
v1.22.11 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddParkField added in v1.21.0

func AddParkField(ctx context.Context, api apis.Locations) error

func NewAPI

func NewAPI(mdb *mongo.Database) apis.Locations

NewAPI creates a new apiImpl object that will use the provided db

func SlugifyPath

func SlugifyPath(path ...string) string

func SlugifyPathString

func SlugifyPathString(loc string) string

SlugifyPathString converts a comma-separated path string into a path slug. Prefixes are stripped from the id.

Types

type ParkInfo added in v1.22.2

type ParkInfo struct {
	ID   string
	Name string
}

Get parent park location id, if any. A park location is not a parent of itself.

Jump to

Keyboard shortcuts

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