formatters

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

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

func (*JSON) GetFileExtension

func (f *JSON) GetFileExtension() string

GetFileExtension returns the file extension for a plain text file

func (*JSON) Read

func (f *JSON) Read(container *schema.LogDumpContainer) ([]byte, error)

Read returns the JSON representation of a LogDumpContainer (json formatted byte array)

func (*JSON) String added in v2.2.0

func (f *JSON) String() string

String returns the name of the formatter

type MegaDumpFormatter

type MegaDumpFormatter interface {
	Read(container *schema.LogDumpContainer) ([]byte, error)
	GetFileExtension() string
	String() string
}

MegaDumpFormatter abstracts the different types of log storage formats

type PlainText

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

func (*PlainText) GetFileExtension

func (pt *PlainText) GetFileExtension() string

GetFileExtension returns the file extension for a plain text file

func (*PlainText) Read

func (pt *PlainText) Read(container *schema.LogDumpContainer) ([]byte, error)

Read returns a flattened representation of all the fields in the LogDumpContainer

func (*PlainText) String added in v2.2.0

func (pt *PlainText) String() string

String returns the name of the formatter

Jump to

Keyboard shortcuts

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