mongodb

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecArgs

type ExecArgs struct {
	Document  bson.M
	Operation OperationType
}

type MetricsRecorder added in v0.0.2

type MetricsRecorder interface {
	RecordUpdateSuccess(collection string, count int64)
	RecordUpdateError(collection string, count int64)
	RecordDeleteSuccess(collection string, count int64)
	RecordDeleteError(collection string, count int64)
	RecordProcessLatency(latencyMs int64)
	RecordBulkRequestProcessLatency(latencyMs int64)
}

type Model

type Model interface {
	Convert() *ExecArgs
}

type OperationType

type OperationType string
const (
	Insert OperationType = "insert"
	Update OperationType = "update"
	Delete OperationType = "delete"
	Upsert OperationType = "upsert"
)

type Raw

type Raw struct {
	ID              string
	Document        bson.M
	Operation       OperationType
	MongoCollection string
}

func (*Raw) Convert

func (r *Raw) Convert() *ExecArgs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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