api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Code    string
	Message string
}

type HTMLOp

type HTMLOp int8
const (
	HTMLReplaceContent HTMLOp = 1
	HTMLReplaceElement HTMLOp = 2
	HTMLInsertBefore   HTMLOp = 3
	HTMLInsertAfter    HTMLOp = 4
)

type HTMLUpdate

type HTMLUpdate struct {
	Operation HTMLOp // how to apply this update
	Selector  string // querySelector syntax: #id .class
	Content   string `json:",omitempty"`
}

type JSCall

type JSCall struct {
	Name string // name of the function to call
	// Args as object, gets encoded by the called function
	Args any `json:",omitempty"`
}

type Stream

type Stream struct {
	Name string // name of the stream to subscribe to
	// Args as object, gets encoded by the called function
	Args any `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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