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
}
JSON is a formatter that converts the LogDumpContainer into a JSON formatted byte array
func (*JSON) GetFileExtension ¶
GetFileExtension returns the file extension for a plain text file
type MegaDumpFormatter ¶
type MegaDumpFormatter interface {
Read(container *schema.LogDumpContainer) ([]byte, error)
GetFileExtension() string
String() string
}
MegaDumpFormatter abstracts the different types of log storage formats
func NewMegaDumpFormatter ¶ added in v2.3.0
func NewMegaDumpFormatter(format config.LogFormat) (MegaDumpFormatter, error)
NewMegaDumpFormatter returns an object that implements the MegaDumpFormatter interface based on the requested format.
type PlainText ¶
type PlainText struct {
// contains filtered or unexported fields
}
PlainText is a formatter that flattens the LogDumpContainer into a plain text format
func (*PlainText) GetFileExtension ¶
GetFileExtension returns the file extension for a plain text file
Click to show internal directories.
Click to hide internal directories.