relayer

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMultiplexedSource

func NewMultiplexedSource(handler bstream.Handler, sources []SourceAddr, maxSourceLatency time.Duration, sourceRequestBurst int) bstream.Source

Types

type Relayer

type Relayer struct {
	*shutter.Shutter
	// contains filtered or unexported fields
}

func NewRelayer

func NewRelayer(
	liveSourceFactory bstream.SourceFactory,
	grpcListenAddr string,
	oneBlocksStore dstore.Store,
) *Relayer

func (*Relayer) List added in v1.9.9

func (*Relayer) Run

func (r *Relayer) Run()

func (*Relayer) Watch

type SourceAddr added in v1.13.1

type SourceAddr struct {
	// URL is the gRPC endpoint address (everything before the '?' separator).
	URL string
	// SecretKey is the value of the "secret" query parameter, or empty when
	// no authentication is required.
	SecretKey string
}

SourceAddr holds a parsed relayer source address, optionally carrying a secret key extracted from the "?secret=<key>" query parameter.

Directories

Path Synopsis
app

Jump to

Keyboard shortcuts

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