ratecontroller

package
v0.0.0-...-0cec2f5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	// WaitTime takes in an oplog entry and returns how long until that operation should be applied.
	// Note that WaitTime should only be called once for each operation.
	WaitTime(op map[string]interface{}) time.Duration
}

Controller is an interface that can be used to control the rate at which oplog entries are applied.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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