db

package
v0.0.0-...-c8063a3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Getclient

func Getclient() *mongo.Client

func Insert

func Insert(papers Papers)

Types

type Bingresp

type Bingresp struct {
	Images   []Image `json:"images"`
	Tooltips struct {
		Loading  string `json:"loading"`
		Previous string `json:"previous"`
		Next     string `json:"next"`
		Walle    string `json:"walle"`
		Walls    string `json:"walls"`
	} `json:"tooltips"`
}

type Image

type Image struct {
	Startdate     string        `bson:"startdate" json:"startdate"`
	Fullstartdate string        `bson:"fullstartdate" json:"fullstartdate"`
	Enddate       string        `bson:"enddate" json:"enddate"`
	URL           string        `bson:"url" json:"url"`
	Urlbase       string        `bson:"urlbase" json:"urlbase"`
	Copyright     string        `bson:"copyright" json:"copyright"`
	Copyrightlink string        `bson:"copyrightlink" json:"copyrightlink"`
	Title         string        `bson:"title" json:"title"`
	Quiz          string        `bson:"quiz" json:"quiz"`
	Wp            bool          `bson:"wp" json:"wp"`
	Hsh           string        `bson:"hsh" json:"hsh"`
	Drk           int           `bson:"drk" json:"drk"`
	Top           int           `bson:"top" json:"top"`
	Bot           int           `bson:"bot" json:"bot"`
	Hs            []interface{} `bson:"hs" json:"hs"`
}

type Papers

type Papers struct {
	Image
	Createtime time.Time `bson:"createtime" json:"createtime"`
}

Jump to

Keyboard shortcuts

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