export

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExportFormat

type ExportFormat string

ExportFormat represents the supported export formats

const (
	FormatJSON     ExportFormat = "json"
	FormatCSV      ExportFormat = "csv"
	FormatMarkdown ExportFormat = "markdown"
)

type Exporter

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

Exporter handles exporting events in different formats

func New

func New(writer io.Writer, format ExportFormat) *Exporter

New creates a new Exporter

func (*Exporter) Export

func (e *Exporter) Export(events []models.EventOutput) error

Export exports the events in the specified format

Jump to

Keyboard shortcuts

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