adapter

package
v0.0.0-...-f619552 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDBAdapter

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

MongoDBAdapter is an implemantation of prometheus remote stprage adapter for MongoDB

func New

func New(urlString, database, collection string) (*MongoDBAdapter, error)

New provides a MongoDBAdapter after initialization

func (*MongoDBAdapter) Close

func (p *MongoDBAdapter) Close()

Close closes the connection with MongoDB

func (*MongoDBAdapter) Run

func (p *MongoDBAdapter) Run(address string) error

Run serves with http listener

Jump to

Keyboard shortcuts

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