bstar

package
Version: v0.0.0-...-fd4faf2 Latest Latest
Warning

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

Go to latest
Published: May 11, 2016 License: BSD-2-Clause, MIT Imports: 5 Imported by: 0

Documentation

Overview

bstar - Binary Star reactor.

Index

Constants

View Source
const (
	PRIMARY = true
	BACKUP  = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bstar

type Bstar struct {
	Reactor *zmq.Reactor //  Reactor loop
	// contains filtered or unexported fields
}

func New

func New(primary bool, local, remote string) (bstar *Bstar, err error)

func (*Bstar) NewActive

func (bstar *Bstar) NewActive(handler func() error)

func (*Bstar) NewPassive

func (bstar *Bstar) NewPassive(handler func() error)

func (*Bstar) SetVerbose

func (bstar *Bstar) SetVerbose(verbose bool)

func (*Bstar) Start

func (bstar *Bstar) Start() error

func (*Bstar) Voter

func (bstar *Bstar) Voter(endpoint string, socket_type zmq.Type, handler func(*zmq.Socket) error)

Source Files

Jump to

Keyboard shortcuts

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