history

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: MIT Imports: 8 Imported by: 0

README

mgo-history

Mongodb-based history data store

Install

    go get -u github.com/taka-wang/psmb/mgo-history

Environment variables

  • CONF_PSMBTCP: config file location
  • EP_BACKEND: remote service discovery endpoint (optional)

Test cases

  • TestHistoryMap tests

UML

uml

Documentation

Overview

Package history an mongodb-based data store for history.

By taka@cmwang.net

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrConnection is the error when the connection failed
	ErrConnection = errors.New("Fail to connect to mongo server")

	// ErrInvalidName is the error when the name is invalid
	ErrInvalidName = errors.New("Invalid name")

	// ErrNoData is the error when the return is empty
	ErrNoData = errors.New("Data does not exist.")

	// ErrMarshal is the error when marshalling to JSON string failed.
	ErrMarshal = errors.New("Fail to marshal!")
)

Functions

func NewDataStore

func NewDataStore(c map[string]string) (interface{}, error)

NewDataStore instantiate data store

Types

This section is empty.

Jump to

Keyboard shortcuts

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