payload

package
v0.0.0-...-fdc5c16 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromMessage

func FromMessage(msg network.Message, payload interface{}) (err error)

Types

type Join

type Join struct {
	TargetID string
	SourceID string
}

type JoinReply

type JoinReply struct {
	PrevID string
	RealID string
}

type NeighborsPayload

type NeighborsPayload struct {
	Neighbors []network.Node
}

type PingPongPayload

type PingPongPayload struct {
	Number int
}

func NewPing

func NewPing() (next PingPongPayload)

Jump to

Keyboard shortcuts

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