plugin

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(ctx *hsruntime.Context) error

Apply applies all Plugins (added by Register), in order of registration, to ctx.

func Register

func Register(p Plugin)

Register adds a new Plugin, to be applied by Apply. Plugins should call this from init.

Types

type Plugin

type Plugin func(ctx *hsruntime.Context) error

Plugin is called to install a plugin on a given Context, updating it to add/wrap funcs, cookiejars, etc.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳