types

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PacketType

type PacketType int
const (
	Unknown PacketType = iota
	// RPC is packet type to execute RPC on a remote node.
	RPC
	// Pulse is packet type to receive Pulse from pulsard and resend it on remote nodes.
	Pulse
	// Bootstrap is packet type for the node bootstrap process.
	Bootstrap
	// Authorize is packet type to authorize bootstrapping node on discovery node.
	Authorize
	// Disconnect is packet type to gracefully disconnect from network.
	Disconnect
	// SignCert used to request signature of certificate from another node
	SignCert
	// UpdateSchedule used for fetching pulse history
	UpdateSchedule
	// Reconnect used to notify nodes to reconnect to the bigger network
	Reconnect
)

func (PacketType) String

func (i PacketType) String() string

type RequestID

type RequestID uint64

RequestID is 64 bit unsigned int request id.

Jump to

Keyboard shortcuts

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