Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewController ¶
func NewController() *controller
NewController returns a thread-safe Controller implementation.
Types ¶
type BreakpointHit ¶
type BreakpointHit struct {
FlowID store.FlowID
Phase Phase
Headers map[string]string
Body []byte
Meta store.FlowMeta
}
BreakpointHit describes a paused flow awaiting user action.
type BreakpointResume ¶
BreakpointResume carries the user's edits (or skip) back to the proxy goroutine.
type Controller ¶
type Controller interface {
Pause(hit BreakpointHit) BreakpointResume
Subscribe() <-chan BreakpointHit
Resume(flowID store.FlowID, resp BreakpointResume)
Pending() []BreakpointHit
ResumeAll()
}
Controller manages breakpoint pause/resume lifecycle.
Click to show internal directories.
Click to hide internal directories.