Documentation
¶
Index ¶
- Constants
- Variables
- func ErrGRPCDial(err error) error
- func Transform(res *nighthawk_client.ExecutionResponse, typ string) ([]byte, error)
- type AddressFamily
- type Client
- type Counter
- type ExperimentalH1ConnectionReuseStrategy
- type FailurePredicates
- type Options
- type OutputFormat
- type Percentile
- type RequestOption
- type Result
- type SequencerIdleStrategy
- type Statistic
- type TransformOptions
- type TransformResult
- type Verbosity
Constants ¶
View Source
const ( ErrGRPCDialCode = "1000" ErrInvalidEndpointCode = "1001" ErrResponseNilCode = "1002" )
Variables ¶
View Source
var ( ErrInvalidEndpoint = errors.NewDefault(ErrInvalidEndpointCode, "Endpoint is unavailable or endpoint is unreachable") ErrResponseNil = errors.NewDefault(ErrResponseNilCode, "Response is nil from the generator") )
Functions ¶
func ErrGRPCDial ¶
func Transform ¶
func Transform(res *nighthawk_client.ExecutionResponse, typ string) ([]byte, error)
Types ¶
type AddressFamily ¶ added in v1.0.2
type AddressFamily struct {
Value string `json:"value"`
}
type Client ¶
type Client struct {
Handler nighthawk_client.NighthawkServiceClient
// contains filtered or unexported fields
}
Client holds the nighthawk client information
type ExperimentalH1ConnectionReuseStrategy ¶ added in v1.0.2
type ExperimentalH1ConnectionReuseStrategy struct {
Value string `json:"value"`
}
type FailurePredicates ¶ added in v1.0.2
type OutputFormat ¶ added in v1.0.2
type OutputFormat struct {
Value string `json:"value"`
}
type Percentile ¶ added in v1.0.2
type RequestOption ¶ added in v1.0.2
type RequestOption struct {
RequestMethod string `json:"request_method"`
RequestHeaders []*v3.HeaderValueOption `json:"request_headers"`
}
type SequencerIdleStrategy ¶ added in v1.0.2
type SequencerIdleStrategy struct {
Value string `json:"value"`
}
type Statistic ¶ added in v1.0.2
type Statistic struct {
Count string `json:"count"`
ID string `json:"id"`
Percentiles []Percentile `json:"percentiles"`
Mean string `json:"mean,omitempty"`
Pstdev string `json:"pstdev,omitempty"`
Min string `json:"min,omitempty"`
Max string `json:"max,omitempty"`
RawMean int `json:"raw_mean,omitempty"`
RawPstdev int `json:"raw_pstdev,omitempty"`
RawMin string `json:"raw_min,omitempty"`
RawMax string `json:"raw_max,omitempty"`
}
type TransformOptions ¶ added in v1.0.2
type TransformOptions struct {
RequestsPerSecond int `json:"requests_per_second"`
Connections int `json:"connections"`
Duration string `json:"duration"`
Timeout string `json:"timeout"`
H2 bool `json:"h2"`
Concurrency string `json:"concurrency"`
Verbosity *Verbosity `json:"verbosity"`
OutputFormat *OutputFormat `json:"output_format"`
AddressFamily *AddressFamily `json:"address_family"`
RequestOptions *RequestOption `json:"request_options"`
SequencerIdleStrategy *SequencerIdleStrategy `json:"sequencer_idle_strategy"`
ExperimentalH1ConnectionReuseStrategy *ExperimentalH1ConnectionReuseStrategy `json:"experimental_h1_connection_reuse_strategy"`
TerminationPredicates struct {
} `json:"termination_predicates"`
FailurePredicates *FailurePredicates `json:"failure_predicates"`
Labels []interface{} `json:"labels"`
StatsSinks []interface{} `json:"stats_sinks"`
PrefetchConnections bool `json:"prefetch_connections"`
BurstSize *wrappers.UInt32Value `json:"burst_size"`
MaxPendingRequests int `json:"max_pending_requests"`
MaxActiveRequests int `json:"max_active_requests"`
MaxRequestsPerConnection int64 `json:"max_requests_per_connection"`
URI string `json:"uri"`
Trace string `json:"trace"`
OpenLoop bool `json:"open_loop"`
ExperimentalH2UseMultipleConnections bool `json:"experimental_h2_use_multiple_connections"`
NighthawkService string `json:"nighthawk_service"`
SimpleWarmup bool `json:"simple_warmup"`
StatsFlushInterval int `json:"stats_flush_interval"`
LatencyResponseHeaderName string `json:"latency_response_header_name"`
}
type TransformResult ¶ added in v1.0.2
type TransformResult struct {
Options *TransformOptions `json:"options"`
Results []Result `json:"results"`
Version *v3.BuildVersion `json:"version"`
Timestamp string `json:"timestamp"`
}
Click to show internal directories.
Click to hide internal directories.