-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conduit: filereader / filewriter plugins and compatibility changes. (#…
- Loading branch information
Showing
27 changed files
with
686 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
package filewriter | ||
|
||
// ExporterConfig specific to the file exporter | ||
type ExporterConfig struct { | ||
// full file path to a directory | ||
// where the block data should be stored. | ||
// Create if directory doesn't exist | ||
// Config specific to the file exporter | ||
type Config struct { | ||
// BlocksDir is the path to a directory where block data should be stored. | ||
// The directory is created if it doesn't exist. | ||
BlocksDir string `yaml:"block-dir"` | ||
// FilenamePattern is the format used to write block files. It uses go | ||
// string formatting and should accept one number for the round. | ||
// If the file has a '.gz' extension, blocks will be gzipped. | ||
// Default: "%[1]d_block.json" | ||
FilenamePattern string `yaml:"filename-pattern"` | ||
// DropCertificate is used to remove the vote certificate from the block data before writing files. | ||
DropCertificate bool `yaml:"drop-certificate"` | ||
|
||
// TODO: compression level - Default, Fastest, Best compression, etc | ||
|
||
// TODO: How to avoid having millions of files in a directory? | ||
// Write batches of blocks to a single file? | ||
// Tree of directories | ||
} |
Oops, something went wrong.