Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// Handlers is the list of handlers that constitute this
// concurrent branch. Any handlers that do connection
// matching (which involves recording and rewinding the
// stream) are unsafe to tee, so do all connection
// matching before teeing.
HandlersRaw []json.RawMessage `json:"branch,omitempty" caddy:"namespace=layer4.handlers inline_key=handler"`
// contains filtered or unexported fields
}
Handler is a layer4 handler that replicates a connection so that a branch of handlers can concurrently handle it. Reads happen in lock-step with all concurrent branches to avoid buffering: if one of the branches (including the main handler chain) stops reading from the connection, it will block all branches.
func (*Handler) CaddyModule ¶
func (*Handler) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
Click to show internal directories.
Click to hide internal directories.