Documentation
¶
Overview ¶
Package lint holds singleuse, an advisory analyzer for the capture a restart cannot reuse.
A restart re-invokes a service's StartFunc, so anything the closure captured is shared across runs. A server, a listener or a supervisor built once at wiring is the previous run's by the second call, and the two failures that follow look nothing alike: the restart cannot work, or the stopped thing carries on looking healthy. controls spec 0004 states the rule; this pass flags the shape.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "singleuse", Doc: "flags a StartFunc that captures a single-use value (server, listener, supervisor) built outside the run", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer is singleuse: it flags a StartFunc that reaches a server, listener or supervisor it did not build.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.