gossip

package
v0.0.0-...-173cbd8 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Local mode = iota
	LAN
	WAN
)

Nework modes

Variables

View Source
var (
	// DefaultKey is the default key, you should change this if using secure
	DefaultKey = []byte("DefaultGossipKey")

	// ExpiryTick is the interval to perform cleans on the state
	ExpiryTick = time.Second * 10
)

Functions

func Address

func Address(address string) registry.Option

Address sets the bind address:port

func Advertise(address string) registry.Option

Advertise sets the address:port avertised

func Logger

func Logger(l *log.Logger) registry.Option

Logger sets the logger used for the memberlist instance

func NetworkMode

func NetworkMode(m mode) registry.Option

NetworkMode sets the network mode

func NewRegistry

func NewRegistry(opts ...registry.Option) registry.Registry

NewRegistry creates a new registry

func SecretKey

func SecretKey(k []byte) registry.Option

SecretKey sets the secret key for gossip

Types

This section is empty.

Directories

Path Synopsis
Package state is a generated protocol buffer package.
Package state is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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