Versions in this module Expand all Collapse all v0 v0.1.0 May 20, 2024 Changes in this version + const EmptyTestPluginAPIVersion + const KnownTypesTestPluginAPIVersion + 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 EmptyTest interface + DoNothing func(context.Context, *emptypb.Empty) (*emptypb.Empty, error) + type EmptyTestPlugin struct + func NewEmptyTestPlugin(ctx context.Context, opts ...wazeroConfigOption) (*EmptyTestPlugin, error) + func (p *EmptyTestPlugin) Load(ctx context.Context, pluginPath string) (emptyTest, error) + type KnownTypesTest interface + Test func(context.Context, *Request) (*Response, error) + type KnownTypesTestPlugin struct + func NewKnownTypesTestPlugin(ctx context.Context, opts ...wazeroConfigOption) (*KnownTypesTestPlugin, error) + func (p *KnownTypesTestPlugin) Load(ctx context.Context, pluginPath string) (knownTypesTest, error) + type Request struct + A *durationpb.Duration + B *timestamppb.Timestamp + C *structpb.Value + D *wrapperspb.BoolValue + E *wrapperspb.BytesValue + F *wrapperspb.DoubleValue + G *wrapperspb.FloatValue + H *wrapperspb.Int32Value + I *wrapperspb.Int64Value + J *wrapperspb.StringValue + K *wrapperspb.UInt32Value + L *wrapperspb.UInt64Value + func (m *Request) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Request) MarshalToVT(dAtA []byte) (int, error) + func (m *Request) MarshalVT() (dAtA []byte, err error) + func (m *Request) SizeVT() (n int) + func (m *Request) UnmarshalVT(dAtA []byte) error + func (x *Request) GetA() *durationpb.Duration + func (x *Request) GetB() *timestamppb.Timestamp + func (x *Request) GetC() *structpb.Value + func (x *Request) GetD() *wrapperspb.BoolValue + func (x *Request) GetE() *wrapperspb.BytesValue + func (x *Request) GetF() *wrapperspb.DoubleValue + func (x *Request) GetG() *wrapperspb.FloatValue + func (x *Request) GetH() *wrapperspb.Int32Value + func (x *Request) GetI() *wrapperspb.Int64Value + func (x *Request) GetJ() *wrapperspb.StringValue + func (x *Request) GetK() *wrapperspb.UInt32Value + func (x *Request) GetL() *wrapperspb.UInt64Value + func (x *Request) ProtoReflect() protoreflect.Message + type Response struct + A *durationpb.Duration + B *timestamppb.Timestamp + C *structpb.Value + D *wrapperspb.BoolValue + E *wrapperspb.BytesValue + F *wrapperspb.DoubleValue + G *wrapperspb.FloatValue + H *wrapperspb.Int32Value + I *wrapperspb.Int64Value + J *wrapperspb.StringValue + K *wrapperspb.UInt32Value + L *wrapperspb.UInt64Value + func (m *Response) MarshalToSizedBufferVT(dAtA []byte) (int, error) + func (m *Response) MarshalToVT(dAtA []byte) (int, error) + func (m *Response) MarshalVT() (dAtA []byte, err error) + func (m *Response) SizeVT() (n int) + func (m *Response) UnmarshalVT(dAtA []byte) error + func (x *Response) GetA() *durationpb.Duration + func (x *Response) GetB() *timestamppb.Timestamp + func (x *Response) GetC() *structpb.Value + func (x *Response) GetD() *wrapperspb.BoolValue + func (x *Response) GetE() *wrapperspb.BytesValue + func (x *Response) GetF() *wrapperspb.DoubleValue + func (x *Response) GetG() *wrapperspb.FloatValue + func (x *Response) GetH() *wrapperspb.Int32Value + func (x *Response) GetI() *wrapperspb.Int64Value + func (x *Response) GetJ() *wrapperspb.StringValue + func (x *Response) GetK() *wrapperspb.UInt32Value + func (x *Response) GetL() *wrapperspb.UInt64Value + func (x *Response) ProtoReflect() protoreflect.Message + type WazeroConfig struct + type WazeroNewRuntime func(context.Context) (wazero.Runtime, error) + func DefaultWazeroRuntime() WazeroNewRuntime