Documentation ¶
Index ¶
- type ConnMetadata
- type Direction
- type DumpValue
- type Dumper
- type HexDumper
- func (h *HexDumper) Dump(in []byte, direction Direction, connMetadata *ConnMetadata, ...) error
- func (h *HexDumper) Log(values []DumpValue)
- func (h *HexDumper) Name() string
- func (h *HexDumper) NewConnMetadata() *ConnMetadata
- func (h *HexDumper) Read(in []byte, direction Direction, connMetadata *ConnMetadata) []DumpValue
- type MysqlDumper
- func (m *MysqlDumper) Dump(in []byte, direction Direction, connMetadata *ConnMetadata, ...) error
- func (m *MysqlDumper) Log(values []DumpValue)
- func (m *MysqlDumper) Name() string
- func (m *MysqlDumper) NewConnMetadata() *ConnMetadata
- func (m *MysqlDumper) Read(in []byte, direction Direction, connMetadata *ConnMetadata) []DumpValue
- type PgDumper
- func (p *PgDumper) Dump(in []byte, direction Direction, connMetadata *ConnMetadata, ...) error
- func (p *PgDumper) Log(values []DumpValue)
- func (p *PgDumper) Name() string
- func (p *PgDumper) NewConnMetadata() *ConnMetadata
- func (p *PgDumper) Read(in []byte, direction Direction, connMetadata *ConnMetadata) []DumpValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnMetadata ¶ added in v0.7.0
type ConnMetadata struct { DumpValues []DumpValue Internal interface{} // internal metadata for dumper }
ConnMetadata is metadada per TCP connection
type Dumper ¶
type Dumper interface { Name() string Dump(in []byte, direction Direction, connMetadata *ConnMetadata, additional []DumpValue) error Read(in []byte, direction Direction, connMetadata *ConnMetadata) []DumpValue Log(values []DumpValue) NewConnMetadata() *ConnMetadata }
Dumper interface
type HexDumper ¶
type HexDumper struct {
// contains filtered or unexported fields
}
HexDumper ...
func (*HexDumper) Dump ¶
func (h *HexDumper) Dump(in []byte, direction Direction, connMetadata *ConnMetadata, additional []DumpValue) error
Dump TCP
func (*HexDumper) NewConnMetadata ¶ added in v0.7.0
func (h *HexDumper) NewConnMetadata() *ConnMetadata
NewConnMetadata ...
type MysqlDumper ¶
type MysqlDumper struct {
// contains filtered or unexported fields
}
MysqlDumper struct
func (*MysqlDumper) Dump ¶
func (m *MysqlDumper) Dump(in []byte, direction Direction, connMetadata *ConnMetadata, additional []DumpValue) error
Dump query of MySQL
func (*MysqlDumper) Name ¶ added in v0.4.0
func (m *MysqlDumper) Name() string
Name return dumper name
func (*MysqlDumper) NewConnMetadata ¶ added in v0.7.0
func (m *MysqlDumper) NewConnMetadata() *ConnMetadata
NewConnMetadata return metadata per TCP connection
func (*MysqlDumper) Read ¶ added in v0.4.0
func (m *MysqlDumper) Read(in []byte, direction Direction, connMetadata *ConnMetadata) []DumpValue
Read return byte to analyzed string
type PgDumper ¶
type PgDumper struct {
// contains filtered or unexported fields
}
PgDumper struct
func (*PgDumper) Dump ¶
func (p *PgDumper) Dump(in []byte, direction Direction, connMetadata *ConnMetadata, additional []DumpValue) error
Dump query of PostgreSQL
func (*PgDumper) NewConnMetadata ¶ added in v0.7.0
func (p *PgDumper) NewConnMetadata() *ConnMetadata
NewConnMetadata ...
Click to show internal directories.
Click to hide internal directories.