Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddArgs ¶
type AddArgs struct {
A, B int
}
AddArgs are an example of parameters for an addition receiver
func (AddArgs) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (AddArgs) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type AddResp ¶
type AddResp struct {
C int
}
AddResp is an example of the result of an addition receiver
func (AddResp) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (AddResp) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type AdderReceiver ¶
AdderReceiver is an example of a receiver that simply adds two numbers.
func (*AdderReceiver) Binding ¶
func (a *AdderReceiver) Binding() (codecs.RpcArgs, codecs.RpcResp)
Binding implements the wasmrpc.Receiver interface
func (*AdderReceiver) Execute ¶
func (a *AdderReceiver) Execute(caller string, env *ArithmeticEnv, _ any) (err error)
Execute implements the wasmrpc.Receiver interface
Source Files
¶
- api.go
- api_gen.go
- service.go
Click to show internal directories.
Click to hide internal directories.