grpc

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

func NewGenerator

func NewGenerator(id int, options GeneratorOptions, ctx context.Context, s *stats.Stats, requestrate int) *Generator

func (*Generator) Do

func (g *Generator) Do(method string, data string, headers []string) (string, error)

func (*Generator) Finish

func (g *Generator) Finish() error

func (*Generator) Init

func (g *Generator) Init() error

func (*Generator) InitDone

func (g *Generator) InitDone() error

func (*Generator) Template

func (g *Generator) Template() (string, error)

func (*Generator) Tick

func (g *Generator) Tick() error

type GeneratorOptions

type GeneratorOptions struct {
	Target               string
	Method               string
	Headers              []string
	Authority            string
	Data                 string
	Proto                []string
	ImportPath           []string
	Deadline             time.Duration
	MaxConcurrentStreams int
	Unix                 bool
	Plaintext            bool
	Insecure             bool
	CaCert               string
	ClientCert           string
	ClientKey            string
	TlsServerName        string
	DiscardResponse      bool
	Template             bool
	EnableLoadBalancer   bool
}

func NewOptions

func NewOptions() *GeneratorOptions

Jump to

Keyboard shortcuts

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