db

package
v0.0.0-...-0521b6c Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close 关闭数据库 TODO: 好像没有关闭

func Init

func Init()

Init 获取环境变量

func NewCollection

func NewCollection() (*mongo.Collection, context.Context, error)

NewCollection 新客户端

Types

type CrawlabItem

type CrawlabItem struct {
	TaskID string `json:"task_id"`
}

CrawlabItem 插入mongo的struct需要继承它

Jump to

Keyboard shortcuts

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