outputs

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package outputs provides output modules for Gmail data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVOutput

type CSVOutput struct {
	// contains filtered or unexported fields
}

CSVOutput exports Gmail messages to CSV format.

func NewCSV

func NewCSV() *CSVOutput

NewCSV creates a new CSV output.

func (*CSVOutput) ConfigSchema

func (o *CSVOutput) ConfigSchema() []core.ConfigOption

func (*CSVOutput) Description

func (o *CSVOutput) Description() string

func (*CSVOutput) Export

func (o *CSVOutput) Export(ctx context.Context, item core.ProcessedItem) error

func (*CSVOutput) ExportBatch

func (o *CSVOutput) ExportBatch(ctx context.Context, items []core.ProcessedItem, progress core.ProgressFunc) error

func (*CSVOutput) Finalize

func (o *CSVOutput) Finalize(ctx context.Context) error

func (*CSVOutput) ID

func (o *CSVOutput) ID() string

func (*CSVOutput) Initialize

func (o *CSVOutput) Initialize(ctx context.Context, cfg core.OutputConfig) error

func (*CSVOutput) Name

func (o *CSVOutput) Name() string

func (*CSVOutput) SupportedItemTypes

func (o *CSVOutput) SupportedItemTypes() []string

type EMLOutput

type EMLOutput struct {
	// contains filtered or unexported fields
}

EMLOutput exports Gmail messages as individual .eml files.

func NewEML

func NewEML() *EMLOutput

NewEML creates a new EML output.

func (*EMLOutput) ConfigSchema

func (o *EMLOutput) ConfigSchema() []core.ConfigOption

func (*EMLOutput) Description

func (o *EMLOutput) Description() string

func (*EMLOutput) Export

func (o *EMLOutput) Export(ctx context.Context, item core.ProcessedItem) error

func (*EMLOutput) ExportBatch

func (o *EMLOutput) ExportBatch(ctx context.Context, items []core.ProcessedItem, progress core.ProgressFunc) error

func (*EMLOutput) Finalize

func (o *EMLOutput) Finalize(ctx context.Context) error

func (*EMLOutput) ID

func (o *EMLOutput) ID() string

func (*EMLOutput) Initialize

func (o *EMLOutput) Initialize(ctx context.Context, cfg core.OutputConfig) error

func (*EMLOutput) Name

func (o *EMLOutput) Name() string

func (*EMLOutput) SupportedItemTypes

func (o *EMLOutput) SupportedItemTypes() []string

type JSONOutput

type JSONOutput struct {
	// contains filtered or unexported fields
}

JSONOutput exports Gmail messages to JSON files.

func NewJSON

func NewJSON() *JSONOutput

NewJSON creates a new JSON output.

func (*JSONOutput) ConfigSchema

func (o *JSONOutput) ConfigSchema() []core.ConfigOption

func (*JSONOutput) Description

func (o *JSONOutput) Description() string

func (*JSONOutput) Export

func (o *JSONOutput) Export(ctx context.Context, item core.ProcessedItem) error

func (*JSONOutput) ExportBatch

func (o *JSONOutput) ExportBatch(ctx context.Context, items []core.ProcessedItem, progress core.ProgressFunc) error

func (*JSONOutput) Finalize

func (o *JSONOutput) Finalize(ctx context.Context) error

func (*JSONOutput) ID

func (o *JSONOutput) ID() string

func (*JSONOutput) Initialize

func (o *JSONOutput) Initialize(ctx context.Context, cfg core.OutputConfig) error

func (*JSONOutput) Name

func (o *JSONOutput) Name() string

func (*JSONOutput) SupportedItemTypes

func (o *JSONOutput) SupportedItemTypes() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL