utxorpc

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 26 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UtxoRpcOptionFunc

type UtxoRpcOptionFunc func(*Utxorpc)

UtxoRpcOptionFunc is a functional option for configuring the UTxO RPC input plugin.

func WithAPIKey

func WithAPIKey(key string) UtxoRpcOptionFunc

WithAPIKey sets the API key value.

func WithAPIKeyHeader

func WithAPIKeyHeader(header string) UtxoRpcOptionFunc

WithAPIKeyHeader sets the header name used for API key authentication.

func WithAutoReconnect

func WithAutoReconnect(autoReconnect bool) UtxoRpcOptionFunc

WithAutoReconnect controls whether the plugin should auto-reconnect on stream failures.

func WithIncludeCbor

func WithIncludeCbor(includeCbor bool) UtxoRpcOptionFunc

WithIncludeCbor controls whether CBOR bytes should be included in emitted events where available.

func WithIntersectPoint

func WithIntersectPoint(point string) UtxoRpcOptionFunc

WithIntersectPoint sets an explicit intersect point string (slot.hash or comma-separated list).

func WithIntersectTip

func WithIntersectTip(intersectTip bool) UtxoRpcOptionFunc

WithIntersectTip controls whether the stream should intersect at the chain tip.

func WithLogger

func WithLogger(logger plugin.Logger) UtxoRpcOptionFunc

WithLogger sets the logger used by the plugin.

func WithMode

func WithMode(mode string) UtxoRpcOptionFunc

WithMode sets the streaming mode (follow-tip or watch-tx).

func WithNetwork

func WithNetwork(network string) UtxoRpcOptionFunc

WithNetwork sets the Cardano network name (e.g. "mainnet", "preprod") used to resolve the network magic for event context.

func WithURL

func WithURL(url string) UtxoRpcOptionFunc

WithURL sets the base URL of the UTxO RPC provider.

type Utxorpc

type Utxorpc struct {
	plugin.Base
	// contains filtered or unexported fields
}

Utxorpc is an input plugin that consumes UTxO RPC streaming endpoints and emits adder events.

func New

func New(options ...UtxoRpcOptionFunc) *Utxorpc

New returns a new Utxorpc plugin with the given options applied.

func (*Utxorpc) Role added in v0.46.0

func (u *Utxorpc) Role() plugin.PluginType

Role identifies this plugin as a pipeline input.

func (*Utxorpc) Start

func (u *Utxorpc) Start() error

Start begins streaming from the configured UTxO RPC endpoint.

func (*Utxorpc) StartContext added in v0.46.0

func (u *Utxorpc) StartContext(ctx context.Context) error

StartContext starts the plugin with ctx governing setup and run operations. Call Stop to wait for workers and release resources, including after cancellation.

func (*Utxorpc) Stop

func (u *Utxorpc) Stop() error

Stop terminates the stream and closes channels. Idempotent.

Jump to

Keyboard shortcuts

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