net

package
v0.0.0-...-b6721d7 Latest Latest
Warning

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

Go to latest
Published: May 27, 2014 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MSG_BROADCAST   byte = 0x80
	MSG_REGULAR     byte = 0x40
	MSG_REPLY       byte = MSG_BROADCAST | MSG_REGULAR
	MSG_TRANSACTION byte = 0x01
	MSG_OBJECT      byte = 0x02
)

Variables

This section is empty.

Functions

func Server

func Server(srv *context.T)

Types

type GitchainApp

type GitchainApp struct {
	// contains filtered or unexported fields
}

func (*GitchainApp) OnDeliver

func (app *GitchainApp) OnDeliver(msg wendy.Message)

func (*GitchainApp) OnError

func (app *GitchainApp) OnError(err error)

func (*GitchainApp) OnForward

func (app *GitchainApp) OnForward(msg *wendy.Message, next wendy.NodeID) bool

func (*GitchainApp) OnHeartbeat

func (app *GitchainApp) OnHeartbeat(node wendy.Node)

func (*GitchainApp) OnNewLeaves

func (app *GitchainApp) OnNewLeaves(leaves []*wendy.Node)

func (*GitchainApp) OnNodeExit

func (app *GitchainApp) OnNodeExit(node wendy.Node)

func (*GitchainApp) OnNodeJoin

func (app *GitchainApp) OnNodeJoin(node wendy.Node)

type HashableEncodable

type HashableEncodable interface {
	Hash() types.Hash
	Encode() ([]byte, error)
}

type KeyAuth

type KeyAuth struct {
	// contains filtered or unexported fields
}

func (*KeyAuth) Marshal

func (a *KeyAuth) Marshal() []byte

func (*KeyAuth) Valid

func (*KeyAuth) Valid(b []byte) bool

Jump to

Keyboard shortcuts

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