GoCanalServer

command module
v0.0.0-...-aeea838 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: AGPL-3.0 Imports: 20 Imported by: 0

README

GoCanalServer

This is a binlog subscriber

uage

GoCanalServer start hide # run in Background
GoCanalServer start show # 

File Structure

|--bin
   ---GoCanalServer
|--conf
   ---app.conf   
|---log

TCP Protocol

frist auth packet
type ServerProto struct {
	Sgin  string
	Mname string
	End   string
}

send msg packet

type Msg struct {
	Sgin [8]byte
	len  uint32
	Body []byte # json.Marshal(Packet)
	End  [8]byte
}
type Packet struct {
	Types       string
	Table       string
	ColumnsType map[string]string
	Columns     []string
	Action      string
	Rows        [][]interface{}
	ColumnsPK   []string
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
vector
replication
Replication package is to handle MySQL replication protocol.
Replication package is to handle MySQL replication protocol.

Jump to

Keyboard shortcuts

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