dbmonitor

package
v0.0.0-...-9bbdfad Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback func(json.RawMessage)

type Monitor

type Monitor struct {
	OVSDB           iOVSDB
	Schema          string
	MonitorRequests map[string]interface{}
	// contains filtered or unexported fields
}

func (*Monitor) Cancel

func (monitor *Monitor) Cancel() (interface{}, error)

func (*Monitor) Register

func (monitor *Monitor) Register(tableName string, monitorTable interface{})

func (*Monitor) Start

func (monitor *Monitor) Start(callback Callback) (json.RawMessage, error)

type RowUpdate

type RowUpdate struct {
	New map[string]interface{} `json:"new"`
	Old map[string]interface{} `json:"old"`
}

type Select

type Select struct {
	Initial bool `json:"initial"`
	Insert  bool `json:"insert"`
	Delete  bool `json:"delete"`
	Modify  bool `json:"modify"`
}

type Table

type Table struct {
	Columns []string `json:"columns,omitempty"`
	Select  Select   `json:"select"`
}

Jump to

Keyboard shortcuts

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