common

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StoreBasePath = "stolon/cluster"

	SentinelLeaderKey = "sentinel-leader"
)

Variables

This section is empty.

Functions

func IsStolonName added in v0.5.0

func IsStolonName(name string) bool

func NameFromStolonName added in v0.5.0

func NameFromStolonName(stolonName string) string

func NewTLSConfig added in v0.5.0

func NewTLSConfig(certFile, keyFile, caFile string, insecureSkipVerify bool) (*tls.Config, error)

func StolonName added in v0.5.0

func StolonName(name string) string

func UID added in v0.5.0

func UID() string

func UUID added in v0.5.0

func UUID() string

Types

type Parameters added in v0.5.0

type Parameters map[string]string

func (Parameters) Equals added in v0.5.0

func (s Parameters) Equals(is Parameters) bool

type Role

type Role string
const (
	RoleUndefined Role = "undefined"
	RoleMaster    Role = "master"
	RoleStandby   Role = "standby"
)

Jump to

Keyboard shortcuts

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