Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandshakeHandler ¶
func NewHandshakeHandler(hsHsHandler backend.HandshakeHandler) *handshakeHandler
Types ¶
type Replay ¶
type Replay interface {
// Start starts the replay
Start(cfg ReplayConfig, backendTLSConfig *tls.Config, hsHandler backend.HandshakeHandler, bcConfig *backend.BCConfig) error
// Stop stops the replay
Stop(err error)
// Progress returns the progress of the replay job
Progress() (float64, time.Time, bool, error)
// Close closes the replay
Close()
}
type ReplayConfig ¶
type ReplayConfig struct {
Input string
Username string
Password string
KeyFile string
// It's specified when executing with the statement `TRAFFIC REPLAY` so that all TiProxy instances
// use the same start time and the time acts as the job ID.
StartTime time.Time
Speed float64
ReadOnly bool
// contains filtered or unexported fields
}
func (*ReplayConfig) Validate ¶
func (cfg *ReplayConfig) Validate() (storage.ExternalStorage, error)
Click to show internal directories.
Click to hide internal directories.