dedupe

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 8 Imported by: 0

README

dedupe

This plugin dedupes inflight secondary read queries

Documentation

Index

Constants

View Source
const Name = "dedupe"

Variables

This section is empty.

Functions

func DedupeKey

func DedupeKey(f *command.Find) string

DedupeKey returns a string to use as the key for deduplication

Types

type DedupePlugin

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

This is a plugin that handles sending the request to the acutual downstream mongo

func (*DedupePlugin) Configure

func (p *DedupePlugin) Configure(d bson.D) error

Configure configures this plugin with the given configuration object. Returns an error if the configuration is invalid for the plugin.

func (*DedupePlugin) Name

func (p *DedupePlugin) Name() string

func (*DedupePlugin) Process

func (p *DedupePlugin) Process(ctx context.Context, r *plugins.Request, next plugins.PipelineFunc) (bson.D, error)

Process is the function executed when a message is called in the pipeline.

type DedupePluginConfig

type DedupePluginConfig struct {
}

Jump to

Keyboard shortcuts

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