binloginfo

package
v0.0.0-...-3056823 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterID uint64 = 1

ClusterID is set by command line argument, if not set, use default value 1.

View Source
var PumpClient binlog.PumpClient

PumpClient is the gRPC client to write binlog, it is opened on server start and never close, shared by all sessions.

Functions

func ClearBinlog

func ClearBinlog(ctx context.Context)

ClearBinlog clears binlog in a context.

func GetPrewriteValue

func GetPrewriteValue(ctx context.Context, createIfNotExists bool) *binlog.PrewriteValue

GetPrewriteValue gets binlog prewrite value in a context.

func GetSchemaVersion

func GetSchemaVersion(ctx context.Context) int64

GetSchemaVersion gets schema version in a context.

func SetSchemaVersion

func SetSchemaVersion(ctx context.Context, version int64)

SetSchemaVersion sets schema version to a context.

func WriteBinlog

func WriteBinlog(bin *binlog.Binlog) error

WriteBinlog writes a binlog to Pump.

Types

This section is empty.

Jump to

Keyboard shortcuts

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