io

package
v0.0.0-...-d662bb3 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileWriter

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

func (*FileWriter) Close

func (fw *FileWriter) Close() error

func (*FileWriter) Init

func (fw *FileWriter) Init(cfg *t.Config) error

func (*FileWriter) Write

func (fw *FileWriter) Write(txn *types.Transaction) (*types.Transaction, error)

type PubSubWriter

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

func (*PubSubWriter) Close

func (writer *PubSubWriter) Close() error

func (*PubSubWriter) Init

func (writer *PubSubWriter) Init(cfg *t.Config) error

func (*PubSubWriter) Write

func (writer *PubSubWriter) Write(txn *types.Transaction) (*types.Transaction, error)

type TxnWriter

type TxnWriter interface {
	Init(*t.Config) error
	Write(*types.Transaction) (*types.Transaction, error)
	Close() error
}

func NewFileWriter

func NewFileWriter() TxnWriter

func NewPubSubWriter

func NewPubSubWriter() TxnWriter

Jump to

Keyboard shortcuts

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