dumper

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2018 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int

Direction of TCP commnication

const (
	// ClientToRemote is client->proxy->remote
	ClientToRemote Direction = iota
	// RemoteToClient is client<-proxy<-remote
	RemoteToClient
)

func (Direction) String

func (d Direction) String() string

type DumpValue

type DumpValue struct {
	Key   string
	Value interface{}
}

DumpValue ...

type DumpValues

type DumpValues struct {
	Values []DumpValue
}

DumpValues ...

type Dumper

type Dumper interface {
	Dump(in []byte, direction Direction, persistent *DumpValues, additional []DumpValue) error
}

Dumper interface

type HexDumper

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

HexDumper ...

func NewHexDumper

func NewHexDumper() *HexDumper

NewHexDumper returns a HexDumper

func (*HexDumper) Dump

func (h *HexDumper) Dump(in []byte, direction Direction, persistent *DumpValues, additional []DumpValue) error

Dump TCP

type MysqlDumper

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

MysqlDumper struct

func NewMysqlDumper

func NewMysqlDumper() *MysqlDumper

NewMysqlDumper returns a MysqlDumper

func (*MysqlDumper) Dump

func (m *MysqlDumper) Dump(in []byte, direction Direction, persistent *DumpValues, additional []DumpValue) error

Dump query of MySQL

type PgDumper

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

PgDumper struct

func NewPgDumper

func NewPgDumper() *PgDumper

NewPgDumper returns a PgDumper

func (*PgDumper) Dump

func (p *PgDumper) Dump(in []byte, direction Direction, persistent *DumpValues, additional []DumpValue) error

Dump query of PostgreSQL

Jump to

Keyboard shortcuts

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