peer

package
v0.0.0-...-07164a9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateRxInit fsm.State = iota
	StateRxDown
	StateRxUp
	StateRxError
)
View Source
const (
	StateTxUp fsm.State = iota
	StateTxIdle
	StateTxError
)
View Source
const (
	EventBlockReadErr fsm.Event = iota
	EventBlockReadStale
	EventBlockReadNew
)
View Source
const (
	EventBlockWritten fsm.Event = iota
	EventBlockWriteErr
	EventBlockWriteSkipped
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	RxFSM *fsm.FSM
	TxFSM *fsm.FSM
}

func NewPeer

func NewPeer(maxStale uint64) *Peer

Jump to

Keyboard shortcuts

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