Documentation
¶
Index ¶
- Constants
- Variables
- func ComputeHash(payloads ...[]byte) [64]byte
- func LogArgs(args am.A) map[string]string
- func ParseRpc(args am.A) am.A
- func Pass(args *A) am.A
- func PassRpc(args *A) am.A
- func SimulateLoad(iterations int)
- type A
- type ARpc
- type Boot
- type PortConn
- func (c *PortConn) Close() error
- func (c *PortConn) LocalAddr() net.Addr
- func (c *PortConn) Read(b []byte) (int, error)
- func (c *PortConn) RemoteAddr() net.Addr
- func (c *PortConn) SetDeadline(t time.Time) error
- func (c *PortConn) SetReadDeadline(t time.Time) error
- func (c *PortConn) SetWriteDeadline(t time.Time) error
- func (c *PortConn) Write(b []byte) (int, error)
Constants ¶
View Source
const APrefix = "wasm"
Variables ¶
View Source
var ( EnvReplDir string EnvRelayHttpAddr string EnvOrchestratorTcpAddr string EnvOrchestratorReplAddr string EnvBrowser1TcpAddr string EnvBrowser1ReplAddr string EnvBrowser2TcpAddr string EnvBrowser2ReplAddr string EnvBrowser3ReplAddr string EnvBrowser4ReplAddr string EnvHashIterations int EnvExitOnCompleted bool EnvSuccessRate int )
Functions ¶
func ComputeHash ¶
func SimulateLoad ¶
func SimulateLoad(iterations int)
SimulateLoad hashes a payload thousands of times to burn CPU cycles.
Types ¶
type A ¶
type A struct {
Id string `log:"id"`
Boot *Boot
Payload []byte
Failed bool `log:"failed"`
Retry bool `log:"retry"`
ReturnCh chan<- []string
}
A is a struct for node arguments. It's a typesafe alternative to am.A.
type ARpc ¶
type ARpc struct {
Id string `log:"id"`
Boot *Boot
Payload []byte
Failed bool `log:"failed"`
Retry bool `log:"retry"`
}
ARpc is a subset of A that can be passed over RPC.
type PortConn ¶
type PortConn struct {
// contains filtered or unexported fields
}
PortConn adapts a JS MessagePort to net.Conn
func (*PortConn) RemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.


