common

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	StoreBasePath = "stolon/cluster"

	SentinelLeaderKey = "sentinel-leader"
)

Variables

This section is empty.

Functions

func WriteFileAtomic added in v0.3.0

func WriteFileAtomic(filename string, data []byte, perm os.FileMode) error

Write file to temp and atomically move when everything else succeeds. This function is taken from

https://github.com/youtube/vitess/blob/master/go/ioutil2/ioutil.go

Copyright 2012, Google Inc. BSD-license

Types

type Role

type Role uint8
const (
	MasterRole Role = iota
	StandbyRole
)

func (Role) String

func (r Role) String() string

Jump to

Keyboard shortcuts

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