Documentation
¶
Overview ¶
Package javascript evaluates Spectre payload normaliser scripts.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶ added in v0.12.0
type Endpoint struct {
// contains filtered or unexported fields
}
Endpoint maps a raw HTTP request pattern to the RPC method that types it.
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
Evaluator owns the JavaScript runtime for one payload normalisation. It is confined to its caller because Sobek runtime access is not synchronized.
func (*Evaluator) Close ¶
func (e *Evaluator) Close()
Close releases the evaluator's context watcher.
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
Program is one immutable set of scripts, shared by all payload normalisations. It retains no runtime-local callback state.
func NewProgram ¶
NewProgram parses and links every .js file in scripts, then evaluates them once in one runtime to validate their combined registrations.
func (*Program) Endpoints ¶ added in v0.12.0
Endpoints returns the declared raw HTTP endpoints, in declaration order.