Versions in this module Expand all Collapse all v0 v0.1.0 May 20, 2024 Changes in this version + const GreeterPluginAPIVersion + var ErrIntOverflow = fmt.Errorf("proto: integer overflow") + var ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") + func WazeroModuleConfig(moduleConfig wazero.ModuleConfig) wazeroConfigOption + func WazeroRuntime(newRuntime WazeroNewRuntime) wazeroConfigOption + type GreetReply struct + Message string + func (m *GreetReply) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *GreetReply) MarshalToVT(dAtA []byte) (int, error) + func (m *GreetReply) MarshalVT() (dAtA []byte, err error) + func (m *GreetReply) SizeVT() (n int) + func (m *GreetReply) UnmarshalVT(dAtA []byte) error + func (x *GreetReply) GetMessage() string + func (x *GreetReply) ProtoReflect() protoreflect.Message + type GreetRequest struct + Name string + func (m *GreetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *GreetRequest) MarshalToVT(dAtA []byte) (int, error) + func (m *GreetRequest) MarshalVT() (dAtA []byte, err error) + func (m *GreetRequest) SizeVT() (n int) + func (m *GreetRequest) UnmarshalVT(dAtA []byte) error + func (x *GreetRequest) GetName() string + func (x *GreetRequest) ProtoReflect() protoreflect.Message + type Greeter interface + Greet func(context.Context, *GreetRequest) (*GreetReply, error) + type GreeterPlugin struct + func NewGreeterPlugin(ctx context.Context, opts ...wazeroConfigOption) (*GreeterPlugin, error) + func (p *GreeterPlugin) Load(ctx context.Context, pluginPath string, hostFunctions HostFunctions) (greeter, error) + type HostFunctions interface + HttpGet func(context.Context, *HttpGetRequest) (*HttpGetResponse, error) + Log func(context.Context, *LogRequest) (*emptypb.Empty, error) + type HttpGetRequest struct + Url string + func (m *HttpGetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *HttpGetRequest) MarshalToVT(dAtA []byte) (int, error) + func (m *HttpGetRequest) MarshalVT() (dAtA []byte, err error) + func (m *HttpGetRequest) SizeVT() (n int) + func (m *HttpGetRequest) UnmarshalVT(dAtA []byte) error + func (x *HttpGetRequest) GetUrl() string + func (x *HttpGetRequest) ProtoReflect() protoreflect.Message + type HttpGetResponse struct + Response []byte + func (m *HttpGetResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *HttpGetResponse) MarshalToVT(dAtA []byte) (int, error) + func (m *HttpGetResponse) MarshalVT() (dAtA []byte, err error) + func (m *HttpGetResponse) SizeVT() (n int) + func (m *HttpGetResponse) UnmarshalVT(dAtA []byte) error + func (x *HttpGetResponse) GetResponse() []byte + func (x *HttpGetResponse) ProtoReflect() protoreflect.Message + type LogRequest struct + Message string + func (m *LogRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *LogRequest) MarshalToVT(dAtA []byte) (int, error) + func (m *LogRequest) MarshalVT() (dAtA []byte, err error) + func (m *LogRequest) SizeVT() (n int) + func (m *LogRequest) UnmarshalVT(dAtA []byte) error + func (x *LogRequest) GetMessage() string + func (x *LogRequest) ProtoReflect() protoreflect.Message + type WazeroConfig struct + type WazeroNewRuntime func(context.Context) (wazero.Runtime, error) + func DefaultWazeroRuntime() WazeroNewRuntime