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 ¶
NewDataStore instantiate data store
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.