web2agent

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts httpx.BuilderOptions) (httpx.Adapter, error)

Types

type Request

type Request struct {
	Rid  int64  `json:"rid,omitempty"`
	Path string `json:"path,omitempty"`
}

type TemplateContext

type TemplateContext struct {
	Rid        int64  `json:"rid,omitempty"`
	Path       string `json:"path,omitempty"`
	DomainName string `json:"domain_name,omitempty"`
	Data       any    `json:"data,omitempty"`
}

type WAState

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

type WATarget

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

func (*WATarget) ExecuteMethod

func (w *WATarget) ExecuteMethod(method string, data xtypes.LazyData) (xtypes.LazyData, error)

func (*WATarget) GetAttr

func (w *WATarget) GetAttr(string) interface{}

func (*WATarget) GetAttrs

func (w *WATarget) GetAttrs() map[string]interface{}

func (*WATarget) Type

func (w *WATarget) Type() string

func (*WATarget) UserContext

func (w *WATarget) UserContext() *claim.UserContext

type Web2Agent

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

func (*Web2Agent) Close

func (w *Web2Agent) Close() error

func (*Web2Agent) Handle

func (w *Web2Agent) Handle(ctx httpx.Context)

func (*Web2Agent) PreformEditorAction

func (w *Web2Agent) PreformEditorAction(ctx httpx.AdapterEditorContext) (any, error)

func (*Web2Agent) ServeEditorFile

func (w *Web2Agent) ServeEditorFile(file string) ([]byte, error)

Jump to

Keyboard shortcuts

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