Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
ID string
Op Op
Query string
Args []string
StartTime time.Time
Duration time.Duration
RowsAffected int64
Error string
TxID string
NPlus1 bool
SlowQuery bool
NormalizedQuery string
}
Event represents a captured database query event.
type Proxy ¶
type Proxy interface {
// ListenAndServe accepts client connections and relays them to the upstream DB.
ListenAndServe(ctx context.Context) error
// Events returns the channel of captured events.
Events() <-chan Event
// Close stops the proxy.
Close() error
}
Proxy is the common interface for DB protocol proxies.
Click to show internal directories.
Click to hide internal directories.