example

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const APrefix = "wasm"

Variables

View Source
var (
	EnvFooWsAddr   string
	EnvFooReplAddr string
)
View Source
var (
	EnvBarTcpAddr  string
	EnvBarReplAddr string
)
View Source
var EnvRelayHttpAddr string

Functions

func LogArgs

func LogArgs(args am.A) map[string]string

LogArgs is an args logger for A.

func ParseRpc

func ParseRpc(args am.A) am.A

ParseRpc parses am.A to *ARpc wrapped in am.A. Useful for REPLs.

func Pass

func Pass(args *A) am.A

Pass prepares am.A from A to pass to further mutations.

func PassRpc

func PassRpc(args *ARpc) am.A

PassRpc prepares am.A from A to pass over RPC.

Types

type A

type A struct {
	Msg string `log:"msg"`

	ReturnCh chan<- []string
}

A is a struct for node arguments. It's a typesafe alternative to am.A.

func ParseArgs

func ParseArgs(args am.A) *A

ParseArgs extracts A from am.Event.ArgsAPrefix.

type ARpc

type ARpc struct {
	Msg string `log:"msg"`
}

ARpc is a subset of A, that can be passed over RPC.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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