Documentation ¶
Index ¶
- func Bootstrap[T ~capnp.ClientKind](ctx context.Context, h local.Host, d Dialer) (T, error)
- func Instantiate[T ~capnp.ClientKind](ctx context.Context, r wazero.Runtime, t T) (*wazergo.ModuleInstance[*NetSock], context.Context, error)
- type Closer
- type Dialer
- type Error
- type ErrorReporter
- type Module
- type NetSock
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Instantiate ¶
func Instantiate[T ~capnp.ClientKind](ctx context.Context, r wazero.Runtime, t T) (*wazergo.ModuleInstance[*NetSock], context.Context, error)
Instantiate the system host module. If instantiation fails, the returned context is expired, and the ctx.Err() method returns the offending error.
Types ¶
type ErrorReporter ¶
ErrorReporter handles Cap'n Proto RPC errors.
func (ErrorReporter) ReportError ¶
func (r ErrorReporter) ReportError(err error)
Click to show internal directories.
Click to hide internal directories.