Documentation ¶
Index ¶
Constants ¶
View Source
const Default = text.Name
Default holds the name of the default format.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
Factory creates output writers for the different part of a Shamir split part.
func NewFactory ¶
NewFactory creates a new instance of Factory.
type Format ¶
type Format interface { // OutputFileName returns the file name for the given x. OutputFileName(x byte) string // Writer creates a new format writer for the part identified by x Writer(x byte) (io.Writer, []io.Closer, error) // Reader creates a new format reader using the given reader as input. Reader(r io.Reader) (io.Reader, error) // Name returns the formats name. Name() string }
Format describes the interface for the various input/output formats.
Click to show internal directories.
Click to hide internal directories.