models

package
v0.0.0-...-f501c68 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var R = regexp.MustCompile("[0-9][+][0-9]+")

Functions

func SectorAddToBson

func SectorAddToBson(sectorI interface{}) (primitive.ObjectID, *bson.M, error)

Types

type Sector

type Sector struct {
	Id      primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	KmFrom  string             `bson:"kmFrom"`
	DesFrom string             `bson:"desFrom"`
	KmTo    string             `bson:"kmTo"`
	DesTo   string             `bson:"desTo"`
}

Jump to

Keyboard shortcuts

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