operator

package
v1.0.4-hotfix Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Holder

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

Holder holds SQL operators

func NewHolder

func NewHolder() *Holder

NewHolder creates a new Holder

func (*Holder) Get

func (h *Holder) Get(taskName string, sqls []string) (string, *Operator)

Get tries to get an operator by taskName and SQLs, returns key and operator

func (*Holder) Remove

func (h *Holder) Remove(taskName, key string)

Remove removes the operator with the key

func (*Holder) Set

func (h *Holder) Set(req *pb.HandleSQLsRequest) error

Set sets an operator according to request

type Operator

type Operator struct {
	Req *pb.HandleSQLsRequest
	// contains filtered or unexported fields
}

Operator contains an operation for specified binlog pos used by `sql-skip` and `sql-replace`

func (*Operator) String

func (o *Operator) String() string

Jump to

Keyboard shortcuts

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