|
@@ -1,7 +1,5 @@
|
|
|
package binlog
|
|
package binlog
|
|
|
|
|
|
|
|
-import "fmt"
|
|
|
|
|
-
|
|
|
|
|
func (c *Conn) startBinLogStream() error {
|
|
func (c *Conn) startBinLogStream() error {
|
|
|
bldc := &BinLogDumpCommand{
|
|
bldc := &BinLogDumpCommand{
|
|
|
Status: COMMAND_BIN_LOG_DUMP,
|
|
Status: COMMAND_BIN_LOG_DUMP,
|
|
@@ -14,6 +12,7 @@ func (c *Conn) startBinLogStream() error {
|
|
|
return c.writeBinLogDumpCommand(bldc)
|
|
return c.writeBinLogDumpCommand(bldc)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+/*
|
|
|
func (c *Conn) listenForBinlog() error {
|
|
func (c *Conn) listenForBinlog() error {
|
|
|
_, err := c.listen()
|
|
_, err := c.listen()
|
|
|
if err != nil {
|
|
if err != nil {
|
|
@@ -30,3 +29,4 @@ func (c *Conn) listenForBinlog() error {
|
|
|
|
|
|
|
|
return nil
|
|
return nil
|
|
|
}
|
|
}
|
|
|
|
|
+*/
|