Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrUnsupportedDataType = Error("unsupported data type")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVTransformer ¶
type CSVTransformer struct {
// contains filtered or unexported fields
}
func NewCSVTransformer ¶
func NewCSVTransformer(tablifier Tablifier, cfg CSVTransformerConfig) *CSVTransformer
type CSVTransformerConfig ¶
type DataTransformer ¶
type DataTransformer interface {
Transform(ctx context.Context, pages <-chan []byte, w io.Writer) error
}
DataTransformer transforms input data and writes it to the given writer
type JSONTablifier ¶
type JSONTablifier struct {
// contains filtered or unexported fields
}
JSONTablifier create table from input json bytes using the Remapper which must end up with json object where all properties are arrays that represent columns e.g. { "Name":["Alan","Alex","Boris"], "Age": [42, 49, 15] }
func NewJSONTablifier ¶
func NewJSONTablifier( columnsRemapper Remapper, logger app.Logger, config *JSONTablifierConfig, ) *JSONTablifier
type JSONTablifierConfig ¶ added in v0.3.0
type JSONTablifierConfig struct { // Columns determines which columns should be added to the result // columns will be selected in the order in which they are specified Columns []string }
type KazaamRemapper ¶
type KazaamRemapper struct {
// contains filtered or unexported fields
}
func NewKazaamRemapper ¶
func NewKazaamRemapper(k *kazaam.Kazaam) *KazaamRemapper
type NoOpRemapper ¶
type NoOpRemapper struct { }
func NewNoOpRemapper ¶
func NewNoOpRemapper() *NoOpRemapper
type PDFTransformer ¶
type PDFTransformer struct {
// contains filtered or unexported fields
}
func NewPDFTransformer ¶
func NewPDFTransformer(remapper Remapper, pageTemplate *template.Template) *PDFTransformer
Click to show internal directories.
Click to hide internal directories.