fetch

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchModule

type FetchModule struct {
	// contains filtered or unexported fields
}

FetchModule provides fetch API functionality

func NewFetchModule

func NewFetchModule() *FetchModule

NewFetchModule creates a new fetch module

func (*FetchModule) Cleanup

func (f *FetchModule) Cleanup() error

Cleanup performs any necessary cleanup

func (*FetchModule) CreateGlobalObject

func (f *FetchModule) CreateGlobalObject(runtime *sobek.Runtime) sobek.Value

CreateGlobalObject creates the fetch function and related objects for global access

func (*FetchModule) GetGlobalName

func (f *FetchModule) GetGlobalName() string

GetGlobalName returns the global name for this module

func (*FetchModule) IsEnabled

func (f *FetchModule) IsEnabled(enabledModules map[string]bool) bool

IsEnabled checks if the module should be enabled based on configuration

func (*FetchModule) Name

func (f *FetchModule) Name() string

Name returns the module name

func (*FetchModule) Setup

func (f *FetchModule) Setup(runtime *sobek.Runtime, manager *vm.VMManager) error

Setup initializes the fetch module in the VM

Jump to

Keyboard shortcuts

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