MCPcopy
hub / github.com/probelabs/goreplay / HTTPOutput

Struct HTTPOutput

output_http.go:54–64  ·  view source on GitHub ↗

HTTPOutput plugin manage pool of workers which send request to replayed server By default workers pool is dynamic and starts with 1 worker or workerMin workers You can specify maximum number of workers using `--output-http-workers`

Source from the content-addressed store, hash-verified

52// By default workers pool is dynamic and starts with 1 worker or workerMin workers
53// You can specify maximum number of workers using `--output-http-workers`
54type HTTPOutput struct {
55 activeWorkers int32
56 config *HTTPOutputConfig
57 queueStats *GorStat
58 elasticSearch *ESPlugin
59 client *HTTPClient
60 stopWorker chan struct{}
61 queue chan *Message
62 responses chan *response
63 stop chan bool // Channel used only to indicate goroutine should shutdown
64}
65
66// NewHTTPOutput constructor for HTTPOutput
67// Initialize workers

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected