Discover Packages
github.com/cryptix/golbstore
package
module
Version:
v0.0.0-...-9789687
Opens a new window with list of versions in this module.
Published: Jun 8, 2014
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
golbStore
a simple package for storing blog posts in a database. currently mgo is used.
originally this was part of @willnix' tinkerBlog .
TODO
Expand ▾
Collapse ▴
Documentation
¶
ErrEntryNotFound is returned when a blog entry could not be found in the store
type Entry struct {
ID string `bson:"_"`
Author string `bson:"author,omitempty"`
Written time .Time `bson:"written,omitempty"`
Title string `bson:"title"`
Text string `bson:"text"`
Teaser string `bson:"teaser"`
}
Entry represents an entry in the blog - for all Storeage backends
The GolbStorer interface represents an abstracted store
Source Files
¶
Directories
¶
Package golbStoreIpsum is an in-memory version of the blog that returns Lorem Ipsum-esque text for testing purpose
Package golbStoreIpsum is an in-memory version of the blog that returns Lorem Ipsum-esque text for testing purpose
Click to show internal directories.
Click to hide internal directories.