Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransformer ¶
func NewTransformer() interfaces.Transformer
NewTransformer satisfies interfaces.TransformerConstructor for public.nodes
Types ¶
type CSVWriter ¶ added in v1.1.0
type CSVWriter struct {
// contains filtered or unexported fields
}
CSVWriter struct for writing v3 DB public.nodes models to a csv file
func NewWriter ¶ added in v1.1.0
func NewWriter(dst io.WriteCloser) *CSVWriter
NewWriter satisfies interfaces.WriterConstructor for public.nodes
type NodeModel ¶
type NodeModel struct { GenesisBlock string `db:"genesis_block"` NetworkID string `db:"network_id"` NodeID string `db:"node_id"` ClientName string `db:"client_name"` ChainID int `db:"chain_id"` }
NodeModel is the v2 and v3 model for public.nodes
type Transformer ¶
type Transformer struct { }
Transformer for transforming v2 DB public.nodes models to v3 DB models
Click to show internal directories.
Click to hide internal directories.