mongodb

package
v0.0.0-...-1d38502 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DropCollection

func DropCollection(col *mongo.Collection) error

func Init

func Init(collection string) (*mongo.Collection, error)

func InsertPosts

func InsertPosts(collection *mongo.Collection, posts []*types.Post) error

func PostsExist

func PostsExist() (*mongo.Collection, bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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