bag

package
v1.99.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bag

type Bag struct {
	Path string        // bag path
	Mode flags.BagMode // bag mode
	// contains filtered or unexported fields
}

func New

func New() *Bag

func (*Bag) Close

func (bag *Bag) Close()

func (*Bag) Put

func (bag *Bag) Put(h *heap.Heap) bool

func (*Bag) String

func (bag *Bag) String() string

type EcsWriter

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

func NewEcsWriter

func NewEcsWriter(url string) *EcsWriter

func (*EcsWriter) Flush

func (w *EcsWriter) Flush()

func (*EcsWriter) Init

func (w *EcsWriter) Init(_ *os.File, _ bool, title string)

func (*EcsWriter) Start

func (w *EcsWriter) Start()

func (*EcsWriter) WriteLine

func (w *EcsWriter) WriteLine(nr, grp int, s string)

func (*EcsWriter) WriteMeta

func (w *EcsWriter) WriteMeta(meta meta)

type JsonWriter

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

func NewJsonWriter

func NewJsonWriter(pretty bool) *JsonWriter

func (*JsonWriter) Flush

func (w *JsonWriter) Flush()

func (*JsonWriter) Init

func (w *JsonWriter) Init(file *os.File, _ bool, title string)

func (*JsonWriter) Start

func (w *JsonWriter) Start()

func (*JsonWriter) WriteLine

func (w *JsonWriter) WriteLine(nr, grp int, s string)

func (*JsonWriter) WriteMeta

func (w *JsonWriter) WriteMeta(meta meta)

type RawWrite

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

func NewRawWriter

func NewRawWriter() *RawWrite

func (*RawWrite) Flush

func (w *RawWrite) Flush()

func (*RawWrite) Init

func (w *RawWrite) Init(f *os.File, _ bool, _ string)

func (*RawWrite) Start

func (w *RawWrite) Start()

func (*RawWrite) WriteLine

func (w *RawWrite) WriteLine(_, _ int, s string)

func (*RawWrite) WriteMeta

func (w *RawWrite) WriteMeta(_ meta)

type SqliteWriter

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

func NewSqliteWriter

func NewSqliteWriter() *SqliteWriter

func (*SqliteWriter) Flush

func (w *SqliteWriter) Flush()

func (*SqliteWriter) Init

func (w *SqliteWriter) Init(file *os.File, old bool, _ string)

func (*SqliteWriter) Start

func (w *SqliteWriter) Start()

func (*SqliteWriter) WriteLine

func (w *SqliteWriter) WriteLine(nr, grp int, s string)

func (*SqliteWriter) WriteMeta

func (w *SqliteWriter) WriteMeta(meta meta)

type TextWrite

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

func NewTextWriter

func NewTextWriter() *TextWrite

func (*TextWrite) Flush

func (w *TextWrite) Flush()

func (*TextWrite) Init

func (w *TextWrite) Init(f *os.File, old bool, title string)

func (*TextWrite) Start

func (w *TextWrite) Start()

func (*TextWrite) WriteLine

func (w *TextWrite) WriteLine(nr, grp int, s string)

func (*TextWrite) WriteMeta

func (w *TextWrite) WriteMeta(meta meta)

type XmlWriter

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

func NewXmlWriter

func NewXmlWriter() *XmlWriter

func (*XmlWriter) Flush

func (w *XmlWriter) Flush()

func (*XmlWriter) Init

func (w *XmlWriter) Init(file *os.File, _ bool, title string)

func (*XmlWriter) Start

func (w *XmlWriter) Start()

func (*XmlWriter) WriteLine

func (w *XmlWriter) WriteLine(nr, grp int, s string)

func (*XmlWriter) WriteMeta

func (w *XmlWriter) WriteMeta(meta meta)

Jump to

Keyboard shortcuts

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