Help us shape the future of Go! Take the 2026 Go Developer Survey

exporter

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentExporter

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

AgentExporter handles exporting canonical events to Agent format.

func NewAgentExporter

func NewAgentExporter(w io.Writer, limit int) *AgentExporter

NewAgentExporter creates a new AgentExporter.

func (*AgentExporter) Export

func (e *AgentExporter) Export(events []*history.Event) error

Export writes sanitized events to JSON, applying time-bounding and pagination limits.

type BashExporter

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

BashExporter handles exporting canonical events to a Bash history file.

func NewBashExporter

func NewBashExporter(filepath string) *BashExporter

NewBashExporter creates a new BashExporter.

func (*BashExporter) Export

func (e *BashExporter) Export(events []*history.Event) error

Export appends canonical events to the target Bash history file. It relies on standard POSIX O_APPEND (atomic for writes under PIPE_BUF). Users should configure HISTAPPEND in their shells.

type ZshExporter

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

ZshExporter handles exporting canonical events to a Zsh history file.

func NewZshExporter

func NewZshExporter(filepath string) *ZshExporter

NewZshExporter creates a new ZshExporter.

func (*ZshExporter) Export

func (e *ZshExporter) Export(events []*history.Event) error

Export appends canonical events to the target Zsh history file. It relies on standard POSIX O_APPEND (atomic for writes under PIPE_BUF). Users should configure HISTAPPEND/share_history in their shells.

Jump to

Keyboard shortcuts

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