Documentation
¶
Index ¶
- Constants
- Variables
- func IsBuiltinType(name string) bool
- func Run(ctx context.Context, opts Options, query *source.Source, params map[string]any) (io.ReadCloser, error)
- func RunArtifact(ctx context.Context, opts Options, data []byte, params map[string]any) (io.ReadCloser, error)
- type Builtin
- type Options
- type Remote
- type Runtime
Constants ¶
View Source
const DefaultBrowser = "http://127.0.0.1:9222"
View Source
const DefaultRuntime = "builtin"
Variables ¶
View Source
var ErrArtifactRequiresBuiltinRuntime = errors.New("compiled artifacts require the builtin runtime")
ErrArtifactRequiresBuiltinRuntime indicates compiled artifacts can only run on the builtin runtime.
Functions ¶
func IsBuiltinType ¶
Types ¶
type Builtin ¶
type Builtin struct {
// contains filtered or unexported fields
}
func (*Builtin) RunArtifact ¶
type Options ¶
type Options struct {
Type string
Proxy string
UserAgent string
Headers *drivers.HTTPHeaders
Cookies *drivers.HTTPCookies
KeepCookies bool
BrowserAddress string
WithBrowser bool
WithHeadlessBrowser bool
FileSystemRoot string
}
func NewDefaultOptions ¶
func NewDefaultOptions() Options
func (*Options) ToInMemory ¶
type Remote ¶
type Remote struct {
// contains filtered or unexported fields
}
func (*Remote) RunArtifact ¶
Click to show internal directories.
Click to hide internal directories.