Documentation ¶
Overview ¶
Code generated by goctl. DO NOT EDIT.
Index ¶
Constants ¶
View Source
const HistoryCollectionName = "history"
Variables ¶
View Source
var ( ErrNotFound = mon.ErrNotFound ErrInvalidObjectId = errors.New("invalid objectId") )
Functions ¶
This section is empty.
Types ¶
type History ¶
type History struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"` Type string `bson:"type,omitempty" json:"type,omitempty"` Data commentcached.Comment `bson:"data,omitempty" json:"data,omitempty"` UpdateAt time.Time `bson:"updateAt,omitempty" json:"updateAt,omitempty"` CreateAt time.Time `bson:"createAt,omitempty" json:"createAt,omitempty"` }
type HistoryModel ¶
type HistoryModel interface {
// contains filtered or unexported methods
}
HistoryModel is an interface to be customized, add more methods here, and implement the added methods in customHistoryModel.
func NewHistoryModel ¶
func NewHistoryModel(url, db string) HistoryModel
NewHistoryModel returns a model for the mongo.
Click to show internal directories.
Click to hide internal directories.