Documentation
¶
Overview ¶
Package plugins provides scripts bundled with the http-relay binary.
Index ¶
Constants ¶
View Source
const BuiltInPrefix = "builtin:"
BuiltInPrefix identifies a script that is embedded in the binary.
Variables ¶
This section is empty.
Functions ¶
func IsBuiltIn ¶
IsBuiltIn reports whether reference uses the embedded-plugin syntax and, when it does, returns the embedded file name.
func ReadBuiltIn ¶
ReadBuiltIn returns an embedded script by its file name, such as "rewrite.openai.js". Nested paths are allowed; paths outside built-in are rejected.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.