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

Struct Middleware

middleware.go:17–26  ·  view source on GitHub ↗

Middleware represents a middleware object

Source from the content-addressed store, hash-verified

15
16// Middleware represents a middleware object
17type Middleware struct {
18 command string
19 data chan *Message
20 Stdin io.Writer
21 Stdout io.Reader
22 commandCancel context.CancelFunc
23 stop chan bool // Channel used only to indicate goroutine should shutdown
24 closed bool
25 mu sync.RWMutex
26}
27
28// NewMiddleware returns new middleware
29func NewMiddleware(command string) *Middleware {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected