lineparser

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLineParser

type DefaultLineParser struct {
}

func NewDefaultLineParser

func NewDefaultLineParser() *DefaultLineParser

func (*DefaultLineParser) Parse

func (*DefaultLineParser) Parse(line string) ([]byte, error)

type PGAuditEntry

type PGAuditEntry struct {
	Timestamp      time.Time `json:"timestamp"`
	LogTimestamp   time.Time `json:"log_timestamp"`
	AuditType      string    `json:"audit_type"`
	StatementID    int       `json:"statement_id"`
	SubstatementID int       `json:"substatement_id,omitempty"`
	Class          string    `json:"class,omitempty"`
	Command        string    `json:"command,omitempty"`
	ObjectType     string    `json:"object_type,omitempty"`
	ObjectName     string    `json:"object_name,omitempty"`
	Statement      string    `json:"statement,omitempty"`
	Parameter      string    `json:"parameter,omitempty"`
}

type PGAuditLineParser

type PGAuditLineParser struct {
}

func NewPGAuditLineParser

func NewPGAuditLineParser() *PGAuditLineParser

func (*PGAuditLineParser) Parse

func (p *PGAuditLineParser) Parse(line string) ([]byte, error)

type WrapLineParser

type WrapLineParser struct {
}

func NewWrapLineParser

func NewWrapLineParser() *WrapLineParser

func (*WrapLineParser) Parse

func (*WrapLineParser) Parse(line string) ([]byte, error)

Jump to

Keyboard shortcuts

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