db

package
v0.0.0-...-4996234 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDB

type MongoDB struct {
	Collection *mongo.Collection
	Ctx        context.Context
}

func NewMongoDB

func NewMongoDB(server string, database string, collection string) *MongoDB

func (MongoDB) GetPage

func (m MongoDB) GetPage(title string) (*web.Page, error)

func (MongoDB) SavePage

func (m MongoDB) SavePage(p *web.Page) error

Jump to

Keyboard shortcuts

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