Back to

Package mongodriver

Latest Go to latest

The latest major version is v2.

Published: Dec 29, 2018 | License: MIT | Module:


func MgoInserter

func MgoInserter(db *mgo.Database) gin.HandlerFunc

MgoInserter is a gin middleware that will insert a MGO mongodb driver into the context.

func New

func New(uri string, dbname string) (*mgo.Database, error)

New mongo db connection for datapoints

func NormalizeDatapoint

func NormalizeDatapoint(dp *models.DataPoint)

NormalizeDatapoint fixes compatabilityissues with datapoints stored in mogodb

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier