Documentation
¶
Index ¶
- type Mempool
- type MempoolOptionFunc
- func WithAddress(address string) MempoolOptionFunc
- func WithIncludeCbor(includeCbor bool) MempoolOptionFunc
- func WithKupoUrl(kupoUrl string) MempoolOptionFunc
- func WithLogger(logger plugin.Logger) MempoolOptionFunc
- func WithNetwork(network string) MempoolOptionFunc
- func WithNetworkMagic(networkMagic uint32) MempoolOptionFunc
- func WithNtcTcp(ntcTcp bool) MempoolOptionFunc
- func WithPollInterval(duration string) MempoolOptionFunc
- func WithSocketPath(socketPath string) MempoolOptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mempool ¶
func (*Mempool) Role ¶ added in v0.46.0
func (m *Mempool) Role() plugin.PluginType
Role identifies this plugin as a pipeline input.
func (*Mempool) Start ¶
Start connects to the node and starts polling. It is idempotent while running; restart with Stop followed by Start.
func (*Mempool) 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.
type MempoolOptionFunc ¶
type MempoolOptionFunc func(*Mempool)
func WithAddress ¶
func WithAddress(address string) MempoolOptionFunc
WithAddress specifies the TCP address (host:port). Use WithNtcTcp(true) for NtC over TCP.
func WithIncludeCbor ¶
func WithIncludeCbor(includeCbor bool) MempoolOptionFunc
WithIncludeCbor specifies whether to include transaction CBOR in events
func WithKupoUrl ¶
func WithKupoUrl(kupoUrl string) MempoolOptionFunc
WithKupoUrl specifies the Kupo API URL for resolving transaction inputs (e.g. http://localhost:1442).
func WithLogger ¶
func WithLogger(logger plugin.Logger) MempoolOptionFunc
WithLogger specifies the logger to use
func WithNetwork ¶
func WithNetwork(network string) MempoolOptionFunc
WithNetwork specifies the network name (e.g. mainnet, preprod)
func WithNetworkMagic ¶
func WithNetworkMagic(networkMagic uint32) MempoolOptionFunc
WithNetworkMagic specifies the network magic value (overrides network name)
func WithNtcTcp ¶
func WithNtcTcp(ntcTcp bool) MempoolOptionFunc
WithNtcTcp specifies whether to use NtC over TCP (e.g. when exposing socket via socat)
func WithPollInterval ¶
func WithPollInterval(duration string) MempoolOptionFunc
WithPollInterval specifies how often to poll the mempool (e.g. "5s", "1m"). Default 5s.
func WithSocketPath ¶
func WithSocketPath(socketPath string) MempoolOptionFunc
WithSocketPath specifies the path to the node's UNIX socket (NtC)