mongoDB

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MongoURI   string `json:"mongo_uri"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	Database   string `json:"database"`
	Collection string `json:"collection"`
}

type MongoProducer

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

func (*MongoProducer) Close

func (p *MongoProducer) Close() error

func (*MongoProducer) Initialize

func (p *MongoProducer) Initialize(configFile string)

func (*MongoProducer) Produce

func (p *MongoProducer) Produce(k []byte, v []byte, o any)

Jump to

Keyboard shortcuts

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