tribe

package
v0.9.0-beta Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2015 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HandlerRegistrationName = "tribe"
)
View Source
const (
	TaskStateQueryResponseSizeLimit int = 1024
)

Variables

View Source
var (

	// Flags consumed by snapd
	Flags = []cli.Flag{flTribeNodeName, flTribe, flTribeSeed, flTribeAdvertiseAddr, flTribeAdvertisePort}
)

Functions

func DefaultConfig

func DefaultConfig(name, advertiseAddr string, advertisePort int, seed string, restAPIPort int) *config

func New

func New(c *config) (*tribe, error)

Types

type LClock

type LClock struct {
	Inc uint64
}

func (*LClock) Increment

func (l *LClock) Increment() LTime

Increment

func (*LClock) Time

func (l *LClock) Time() LTime

Time returns the current value of the clock

func (*LClock) Update

func (l *LClock) Update(lt LTime)

Update

type LTime

type LTime uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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