base

package
v0.0.0-...-ca2c06c Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AutoIncrementEvent = "AutoIncrement"
	TotalRowsEvent     = "TotalRows"
	UpdateTimeEvent    = "UpdateTime"
)

Variables

This section is empty.

Functions

func GetTableInfo

func GetTableInfo(db *gorm.DB, database, table string) (ist *informationSchemaTable, err error)

func NewTableListener

func NewTableListener(database, table string, callback ListenerCallback) *tableListener

初始化

Types

type DingDingListenerCallback

type DingDingListenerCallback struct {
}

func (*DingDingListenerCallback) Call

func (callback *DingDingListenerCallback) Call(ist *informationSchemaTable, tld *tableListenerDiscrepantData) (err error)

type ListenerCallback

type ListenerCallback interface {
	Call(ist *informationSchemaTable, tld *tableListenerDiscrepantData) (err error)
}

type TestListenerCallback

type TestListenerCallback struct {
}

调试callback

func (*TestListenerCallback) Call

func (callback *TestListenerCallback) Call(ist *informationSchemaTable, tld *tableListenerDiscrepantData) (err error)

Jump to

Keyboard shortcuts

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