pkg

package
v0.0.0-...-ddc81c2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDB

type MongoDB struct {
	Conn       string
	Panic      bool
	SettingLog bool
}

func (*MongoDB) Connect

func (m *MongoDB) Connect() (client *mongo.Client, ctx context.Context, fctx context.CancelFunc, err error)

func (*MongoDB) DeleteMany

func (m *MongoDB) DeleteMany()

func (*MongoDB) DeleteOne

func (m *MongoDB) DeleteOne()

func (*MongoDB) Find

func (m *MongoDB) Find()

func (*MongoDB) FindOne

func (m *MongoDB) FindOne(filter interface{}, collection string, document string) interface{}

func (*MongoDB) InsertMany

func (m *MongoDB) InsertMany(inserts []interface{}, collection string, document string)

func (*MongoDB) InsertOne

func (m *MongoDB) InsertOne(insert interface{}, collection string, document string)

func (*MongoDB) Log

func (m *MongoDB) Log(message string)

func (*MongoDB) PanicLog

func (m *MongoDB) PanicLog(messageErr error)

func (*MongoDB) UpdateMany

func (m *MongoDB) UpdateMany()

func (*MongoDB) UpdateOne

func (m *MongoDB) UpdateOne(upload interface{}, filter interface{}, collection string, document string)

Jump to

Keyboard shortcuts

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