Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEntryNotFound = errors.New("No Blog Entry with that ID") ErrBadObjectId = errors.New("error while validating entry ID") )
Functions ¶
This section is empty.
Types ¶
type Blogger ¶
type Entry ¶
type Entry struct { ObjId bson.ObjectId `bson:"_id,omitempty" form:"-"` Id string `bson:"-" form:"id"` Author string `bson:"author,omitempty" form:"-"` Written time.Time `bson:"written,omitempty" form:"-"` Title string `bson:"title" form:"title" binding:"required"` Text string `bson:"text" form:"text" binding:"required"` }
struct for dbquery results mgo requires the string literal tags
type MgoBlog ¶
type MgoBlog struct {
// contains filtered or unexported fields
}
func (MgoBlog) LatestEntries ¶
LatestEntries loads all Blogentries in the results slice (sorted descending by date)
Click to show internal directories.
Click to hide internal directories.