transport

package
v0.6.2-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Unknown = iota
	AltairJson
	BellatrixJson
	CapellaJson
	CapellaSSZ
)

Variables

View Source
var (
	ErrDecodeVarint = errors.New("error decoding varint value")
)

Functions

func Encode

func Encode(m Message) ([]byte, error)

Types

type ForkVersionFormat

type ForkVersionFormat uint64

type Message

type Message struct {
	Source       uuid.UUID
	ForkEncoding ForkVersionFormat
	Payload      []byte
}

func Decode

func Decode(b []byte) (Message, error)

type Subscription

type Subscription interface {
	Next(context.Context) (Message, error)
	Close() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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