chainsync

package
v0.32.5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFromCmdlineOptions

func NewFromCmdlineOptions() plugin.Plugin

Types

type ChainSync

type ChainSync struct {
	// contains filtered or unexported fields
}

func New

func New(options ...ChainSyncOptionFunc) *ChainSync

New returns a new ChainSync object with the specified options applied

func (*ChainSync) ErrorChan

func (c *ChainSync) ErrorChan() chan error

ErrorChan returns the filter error channel

func (*ChainSync) InputChan

func (c *ChainSync) InputChan() chan<- event.Event

InputChan returns the input event channel

func (*ChainSync) OutputChan

func (c *ChainSync) OutputChan() <-chan event.Event

OutputChan returns the output event channel

func (*ChainSync) Start

func (c *ChainSync) Start() error

Start the chain sync filter

func (*ChainSync) Stop

func (c *ChainSync) Stop() error

Stop the chain sync filter

type ChainSyncOptionFunc

type ChainSyncOptionFunc func(*ChainSync)

func WithAddresses

func WithAddresses(addresses []string) ChainSyncOptionFunc

WithAddresses specfies the address to filter on

func WithAssetFingerprints

func WithAssetFingerprints(assetFingerprints []string) ChainSyncOptionFunc

WithAssetFingerprints specifies the asset fingerprint (asset1xxx) to filter on

func WithLogger

func WithLogger(logger plugin.Logger) ChainSyncOptionFunc

WithLogger specifies the logger object to use for logging messages

func WithPolicies

func WithPolicies(policyIds []string) ChainSyncOptionFunc

WithPolicies specfies the address to filter on

func WithPoolIds

func WithPoolIds(poolIds []string) ChainSyncOptionFunc

WithPoolIds specifies the pool to filter on

Jump to

Keyboard shortcuts

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