e2e

package
v0.0.0-...-a4d05e0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type E2E

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

func New

func New(ctx context.Context, opts *Options) (*E2E, error)

func (*E2E) Tests

func (e *E2E) Tests() []*Test

type Metrics

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

type Options

type Options struct {
	APIURLs               []string      `long:"api-url" env:"XMTP_API_URLS" description:"XMTP node API URLs" default:"http://localhost"`
	ClientsPerURL         int           `long:"clients-per-url" description:"Number of clients for each API URL" default:"1"`
	MessagePerClient      int           `long:"messages-per-client" description:"Number of messages to publish for each client" default:"3"`
	Continuous            bool          `long:"continuous" description:"Run continuously"`
	ExitOnError           bool          `long:"exit-on-error" description:"Exit on error if running continuously"`
	RunDelay              time.Duration `long:"delay" description:"Delay between runs" default:"5s"`
	AdminPort             uint          `long:"admin-port" description:"Admin HTTP server listen port" default:"7777"`
	QueryConvergenceDelay time.Duration `long:"query-convergence-delay" description:"Delay between query convergence checks" default:"10ms"`

	GitCommit string
}

type Test

type Test struct {
	Name string
	Run  testRunFunc
}

Jump to

Keyboard shortcuts

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