events

package
v0.0.0-...-5d4f8f2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Key   string
	Value []byte

	// hold prior event value if available
	ParentKey   string
	ParentValue []byte
	Type        EventType
}

type EventProc

type EventProc interface {
	Receive() <-chan *Event
	Watch()
	Close()
}

type EventType

type EventType int
const (
	RecordCreated EventType = iota
	RecordUpdated
	RecordDeleted
)

Jump to

Keyboard shortcuts

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