grpc

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gun

type Gun struct {
	DebugLog bool

	core.GunDeps
	// contains filtered or unexported fields
}

func NewGun

func NewGun(conf GunConfig) *Gun

func (*Gun) AcceptWarmUpResult

func (g *Gun) AcceptWarmUpResult(i interface{}) error

func (*Gun) Bind

func (g *Gun) Bind(aggr core.Aggregator, deps core.GunDeps) error

func (*Gun) Shoot

func (g *Gun) Shoot(am core.Ammo)

func (*Gun) WarmUp

func (g *Gun) WarmUp(opts *warmup.Options) (interface{}, error)

type GunConfig

type GunConfig struct {
	Target      string          `validate:"required"`
	Timeout     time.Duration   `config:"timeout"` // grpc request timeout
	TLS         bool            `config:"tls"`
	DialOptions grpcDialOptions `config:"dial_options"`
}

type Sample

type Sample struct {
	URL              string
	ShootTimeSeconds float64
}

Jump to

Keyboard shortcuts

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