replay

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandshakeHandler

func NewHandshakeHandler(hsHsHandler backend.HandshakeHandler) *handshakeHandler

func NewReplay

func NewReplay(lg *zap.Logger, idMgr *id.IDManager) *replay

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
	Speed    float64
	// contains filtered or unexported fields
}

func (*ReplayConfig) Validate

func (cfg *ReplayConfig) Validate() error

Jump to

Keyboard shortcuts

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