mgdb

package
v0.0.0-...-a52fffe Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

func NovelAdd

func NovelAdd(data Novel) (result *qmgo.InsertOneResult, err error)

func NovelOriginAdd

func NovelOriginAdd(data Novel) (result *qmgo.InsertOneResult, err error)

func NovelSourceAdd

func NovelSourceAdd(data NovelSource) (result *qmgo.InsertOneResult, err error)

func NovelSourceOriginAdd

func NovelSourceOriginAdd(data NovelSource) (result *qmgo.InsertOneResult, err error)

Types

type A

type A = bson.A

A is an alias of bson.A

type D

type D = bson.D

D is an alias of bson.D

type E

type E = bson.E

E is an alias of bson.E

type M

type M = bson.M

M is an alias of bson.M

type Novel

type Novel struct {
	Name          string    `bson:"name"`
	Author        string    `bson:"author"`
	NewChapter    string    `bson:"new_chapter"`
	NewChapterUrl string    `bson:"new_chapter_url"`
	Chapter       string    `bson:"chapter"`
	Source        string    `bson:"source"`
	Url           string    `bson:"url"`
	Updatetime    time.Time `bson:"updatetime,omitempty" json:"updatetime"`
	Createtime    time.Time `bson:"createtime,omitempty" json:"createtime"`
}

type NovelBid

type NovelBid struct {
	MgID string `bson:"_id"`

	Name          string    `bson:"name"`
	Author        string    `bson:"author"`
	NewChapter    string    `bson:"new_chapter"`
	NewChapterUrl string    `bson:"new_chapter_url"`
	Chapter       string    `bson:"chapter"`
	Source        string    `bson:"source"`
	Url           string    `bson:"url"`
	Updatetime    time.Time `bson:"updatetime,omitempty" json:"updatetime"`
	Createtime    time.Time `bson:"createtime,omitempty" json:"createtime"`
}

type NovelSource

type NovelSource struct {
	Name       string    `bson:"name"`
	RuleJson   string    `bson:"rule_json"`
	Status     bool      `bson:"status"`
	Updatetime time.Time `bson:"updatetime,omitempty" json:"updatetime"`
	Createtime time.Time `bson:"createtime,omitempty" json:"createtime"`
}

type NovelSourceBid

type NovelSourceBid struct {
	MgID       string    `bson:"_id"`
	Name       string    `bson:"name"`
	RuleJson   string    `bson:"rule_json"`
	Status     bool      `bson:"status"`
	Updatetime time.Time `bson:"updatetime,omitempty" json:"updatetime"`
	Createtime time.Time `bson:"createtime,omitempty" json:"createtime"`
}

func NovelSearch

func NovelSearch(id, sort string, limit ...int64) (result []NovelSourceBid, err error)

func NovelSourceId

func NovelSourceId(id string) (result NovelSourceBid, err error)

func NovelSourceOriginFind

func NovelSourceOriginFind(limit ...int64) (result []NovelSourceBid, err error)

func NovelSourceSearch

func NovelSourceSearch(id, sort string, limit ...int64) (result []NovelSourceBid, err error)

Jump to

Keyboard shortcuts

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