ops

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: BSD-3-Clause Imports: 0 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandType

type CommandType int

CommandType represents the different Commands capable of being executed against a database.

const (

	// Flush is interpreted by the receiving sink adaptors to attempt to flush all buffered
	// operations to the database.  This can be useful when switching from a copy to a tail operation
	Flush CommandType = iota
)

Transporter understands the following different command types

type Op

type Op int

Op represents the many different Operations being performed against a document (i.e. Insert, Update, etc.)

const (
	Insert Op = iota
	Update
	Delete
	Command
	Noop
	Skip
	Unknown
)

messages refer to specific types database operations which are enumerated here.

func OpTypeFromString

func OpTypeFromString(s string) Op

OpTypeFromString returns the constant representing the passed in string

func (Op) String

func (o Op) String() string

String returns the constant of the string representation of the OpType object.

Jump to

Keyboard shortcuts

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