commenthistory

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL