utils

package
v0.0.0-...-66c35ad Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	OffsetNewest     int64 = -1
	OffsetOldest     int64 = -2
	OffsetCheckpoint int64 = -3
)

Variables

This section is empty.

Functions

func Alarm

func Alarm(msg string)

func CheckTableExist

func CheckTableExist(mysqlHost string, mysqlPort int, mysqlUser string,
	mysqlPasswd string, tableSchema string, tableName string) (bool, error)

func CreateEphemeralSequential

func CreateEphemeralSequential(zkConn *zk.Conn, nodesPath string) (string, error)

func EnsurePath

func EnsurePath(zkConn *zk.Conn, path string, value []byte) error

func GetConsumeOffset

func GetConsumeOffset(mysqlHost string, mysqlPort int, mysqlUser string,
	mysqlPasswd string, tableSchema string, tableName string, kafkaTopic string) (int64, error)

func GetMysqlVar

func GetMysqlVar(mysqlHost string, mysqlPort int, mysqlUser string, mysqlPasswd string, varName string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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