mongodb

package
v0.0.0-...-2734c1c Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient() (*mongo.Client, error)

func NewCollection

func NewCollection(clt *mongo.Client) (*mongo.Collection, error)

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(clt *mongo.Client) Handler

func (Handler) AddNewDoc

func (h Handler) AddNewDoc(c *gin.Context)

func (Handler) DeleteOnDocByName

func (h Handler) DeleteOnDocByName(c *gin.Context)

func (Handler) DocExists

func (h Handler) DocExists(dt string) bool

func (Handler) GetOneDocByID

func (h Handler) GetOneDocByID(c *gin.Context)

func (Handler) GetOneDocByTitle

func (h Handler) GetOneDocByTitle(c *gin.Context)

Jump to

Keyboard shortcuts

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