util

package
v1.7.0-dev Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const DEFAULT_HEALTHCHECK_QUERY = "SELECT 1;"

Variables

This section is empty.

Functions

func HealthCheck

func HealthCheck(target string) error

Types

type Replica

type Replica struct {
	Name   string
	IP     string
	Status *ReplicationInfo
}

type ReplicationInfo

type ReplicationInfo struct {
	ReceiveLocation uint64
	ReplayLocation  uint64
}

func GetReplicationInfo

func GetReplicationInfo(target string) (*ReplicationInfo, error)

Jump to

Keyboard shortcuts

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