Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransformer ¶
func NewTransformer() interfaces.Transformer
NewTransformer satisfies interfaces.TransformerConstructor for eth.storage_cids
Types ¶
type CSVWriter ¶ added in v1.1.0
type CSVWriter struct {
// contains filtered or unexported fields
}
CSVWriter struct for writing v3 DB eth.storage_cids models to a csv file
func NewWriter ¶ added in v1.1.0
func NewWriter(dst io.WriteCloser) *CSVWriter
NewWriter satisfies interfaces.WriterConstructor for eth.storage_cids
type StorageModelV2 ¶
type StorageModelV2 struct { ID int64 `db:"id"` StateID int64 `db:"state_id"` Path []byte `db:"storage_path"` StorageKey string `db:"storage_leaf_key"` NodeType int `db:"node_type"` CID string `db:"cid"` MhKey string `db:"mh_key"` Diff bool `db:"diff"` }
StorageModelV2 is the db model for eth.storage_cids for v2 DB
type StorageModelV2WithMeta ¶
type StorageModelV2WithMeta struct { BlockHash string `db:"block_hash"` StatePath []byte `db:"state_path"` StorageModelV2 }
StorageModelV2WithMeta is the db model for eth.storage_cids for v2 DB with the additional metadata required to convert to the v3 model
type StorageModelV3 ¶
type StorageModelV3 struct { HeaderID string `db:"header_id"` StatePath []byte `db:"state_path"` StorageKey string `db:"storage_leaf_key"` CID string `db:"cid"` Path []byte `db:"storage_path"` NodeType int `db:"node_type"` Diff bool `db:"diff"` MhKey string `db:"mh_key"` }
StorageModelV3 is the db model for eth.storage_cids for v3 DB
type Transformer ¶
type Transformer struct { }
Transformer struct for transforming v2 DB eth.storage_cids models to v2 DB models
Click to show internal directories.
Click to hide internal directories.