budhttp

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Publish(topic string, data []byte) error
	Open(name string) (fs.File, error)
	js.VM
}

func Load

func Load(log log.Log, addr string) (Client, error)

Load a client from an address

func Try

func Try(log log.Log, addr string) (Client, error)

Try tries loading a dev client from an environment variable or returns an empty client if no environment variable is set

type Eval added in v0.2.6

type Eval struct {
	Path string
	Expr string
}

type Event

type Event struct {
	Topic string `json:"topic,omitempty"`
	Data  []byte `json:"data,omitempty"`
}

type Script added in v0.2.6

type Script struct {
	Path   string
	Script string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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