plugins

package
v0.17.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 4 Imported by: 0

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

func IsBuiltIn(reference string) (name string, ok bool)

IsBuiltIn reports whether reference uses the embedded-plugin syntax and, when it does, returns the embedded file name.

func ReadBuiltIn

func ReadBuiltIn(name string) ([]byte, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL