consumer

package
v0.0.0-...-948e253 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearPos

func ClearPos(sid int) bool

ClearPos 删除同步的位置点, 在mysql 发生failover 时使用

func ConsumeData

func ConsumeData(interval time.Duration)

ConsumeData 消费mysql 的变更

func GetPos

func GetPos(sid int) (string, string, uint32)

GetPos 获取解析到的位置点

func SavePos

func SavePos(sid int)

SavePos 异步将解析到的位置点写到数据库中

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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