Documentation
¶
Overview ¶
Package convtest binds the WIT world conv.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conv ¶
type Conv struct {
// contains filtered or unexported fields
}
Conv is an instance of a component of the WIT world conv.
func Instantiate ¶
func Instantiate(ctx context.Context, r wazy.Runtime, wasm []byte, imports Imports, opts ...component.Option) (*Conv, error)
Instantiate instantiates a component of the world conv, with imports implementing its imports. opts are passed on to component.Instantiate, for what the bindings leave to the host, such as WASI.
type Holder ¶
type Holder struct {
M map[string]Item
F [2]Item
O *[]Node
Okonly witgo.Result[uint64, struct{}]
Bare witgo.Result[struct{}, struct{}]
Errorly witgo.Result[struct{}, Level]
T witgo.Tuple3[bool, rune, float32]
B Bits
L Level
Nested [][]uint16
Fixedprim [2]int8
Ints []int32
Chars []rune
Bools []bool
Long Tuple9
}
Holder is the WIT record holder.
type Host ¶
type Host interface {
Take(ctx context.Context, h Holder) (Holder, error)
Keywords(ctx context.Context, range_ uint32, ctx_ string, err_ int8, chan_ uint16, impl_ bool, res_ uint64) (uint32, error)
Shuffle(ctx context.Context, t witgo.Tuple3[uint8, int16, uint16]) (map[uint32][]byte, error)
}
Host is the host's implementation of wazy:conv/host@0.1.0.
type Node ¶
type Node struct {
Case NodeCase
// contains filtered or unexported fields
}
Node is the WIT variant node: Case says which case it holds.