Versions in this module Expand all Collapse all v1 v1.0.1 Jan 13, 2023 v1.0.0 Sep 16, 2022 Changes in this version + var BlogDB *mongo.DB + func Initialize(ctx context.Context) + type Category struct + ID bson.ObjectId + Name string + URL string + type Post struct + Author bson.ObjectId + Category bson.ObjectId + Content string + CreatedAt time.Time + Hidden bool + ID bson.ObjectId + Markdown string + Menu string + ModifiedAt time.Time + Name string + Password string + Status string + Tags []string + Title string + Type string + type PostSeries struct + Chidlren []bson.ObjectId + ID bson.ObjectId + Key string + Posts []bson.ObjectId + Remark string + type User struct + Account string + ID bson.ObjectId + Password string + Username string + func (u *User) GetID() string + func (u *User) GetPayload() map[string]interface{}