js_inject

package
v0.15.10 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "js_inject"
)

Variables

This section is empty.

Functions

func Create

func Create(id, name string, conf *Config, workers map[eosc.RequireId]eosc.IWorker) (eosc.IWorker, error)

func NewFactory

func NewFactory() eosc.IExtenderDriverFactory

func Register

func Register(register eosc.IExtenderDriverRegister)

Types

type Config

type Config struct {
	Variables        []Variable `json:"variables" label:"变量列表"`
	InjectCode       string     `json:"inject" label:"注入代码"`
	MatchContentType []string   `json:"match_content_type" label:"匹配的Content-Type"`
}

type Variable

type Variable struct {
	Key   string `json:"key" label:"变量名"`
	Value string `json:"value" label:"变量值"`
}

Jump to

Keyboard shortcuts

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