Documentation ¶
Index ¶
- Constants
- func Server(srv *context.T)
- type GitchainApp
- func (app *GitchainApp) OnDeliver(msg wendy.Message)
- func (app *GitchainApp) OnError(err error)
- func (app *GitchainApp) OnForward(msg *wendy.Message, next wendy.NodeID) bool
- func (app *GitchainApp) OnHeartbeat(node wendy.Node)
- func (app *GitchainApp) OnNewLeaves(leaves []*wendy.Node)
- func (app *GitchainApp) OnNodeExit(node wendy.Node)
- func (app *GitchainApp) OnNodeJoin(node wendy.Node)
- type HashableEncodable
- type KeyAuth
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 ¶
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) 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 ¶
Click to show internal directories.
Click to hide internal directories.