Documentation
¶
Index ¶
- type UtxoRpcOptionFunc
- func WithAPIKey(key string) UtxoRpcOptionFunc
- func WithAPIKeyHeader(header string) UtxoRpcOptionFunc
- func WithAutoReconnect(autoReconnect bool) UtxoRpcOptionFunc
- func WithIncludeCbor(includeCbor bool) UtxoRpcOptionFunc
- func WithIntersectPoint(point string) UtxoRpcOptionFunc
- func WithIntersectTip(intersectTip bool) UtxoRpcOptionFunc
- func WithLogger(logger plugin.Logger) UtxoRpcOptionFunc
- func WithMode(mode string) UtxoRpcOptionFunc
- func WithNetwork(network string) UtxoRpcOptionFunc
- func WithURL(url string) UtxoRpcOptionFunc
- type Utxorpc
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 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 ¶
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) StartContext ¶ added in v0.46.0
StartContext starts the plugin with ctx governing setup and run operations. Call Stop to wait for workers and release resources, including after cancellation.