cluster

package
v0.0.0-...-060dca9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Datastructures and interfaces for Cluster-Management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Metadata(limit int) []byte

	Create(n *Node)
	Update(n *Node)
	Delete(n *Node)

	ValidateAll(n []Node) bool
}

type Node

type Node struct {
	Name string
	Addr net.IP
	Meta []byte
}

type StateHandler

type StateHandler interface {
	LocalState(join bool) []byte
	MergeRemoteState(buf []byte, join bool)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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