Documentation ¶
Index ¶
- Constants
- Variables
- func WazeroModuleConfig(moduleConfig wazero.ModuleConfig) wazeroConfigOption
- func WazeroRuntime(newRuntime WazeroNewRuntime) wazeroConfigOption
- type Enum
- type ErrorRequest
- func (x *ErrorRequest) GetErrText() string
- func (m *ErrorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *ErrorRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *ErrorRequest) MarshalVT() (dAtA []byte, err error)
- func (x *ErrorRequest) ProtoReflect() protoreflect.Message
- func (m *ErrorRequest) SizeVT() (n int)
- func (m *ErrorRequest) UnmarshalVT(dAtA []byte) error
- type FieldTest
- type FieldTestPlugin
- type IntValue
- func (x *IntValue) GetA() int32
- func (m *IntValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *IntValue) MarshalToVT(dAtA []byte) (int, error)
- func (m *IntValue) MarshalVT() (dAtA []byte, err error)
- func (x *IntValue) ProtoReflect() protoreflect.Message
- func (m *IntValue) SizeVT() (n int)
- func (m *IntValue) UnmarshalVT(dAtA []byte) error
- type Request
- func (x *Request) GetA() float64
- func (x *Request) GetB() float32
- func (x *Request) GetC() int32
- func (x *Request) GetD() int64
- func (x *Request) GetE() uint32
- func (x *Request) GetF() uint64
- func (x *Request) GetG() int32
- func (x *Request) GetH() int64
- func (x *Request) GetI() uint32
- func (x *Request) GetJ() uint64
- func (x *Request) GetK() int32
- func (x *Request) GetL() int64
- func (x *Request) GetM() bool
- func (x *Request) GetN() string
- func (x *Request) GetO() []byte
- func (x *Request) GetP() []string
- func (x *Request) GetQ() map[string]*IntValue
- func (x *Request) GetR() *Request_Nested
- func (x *Request) GetS() Enum
- 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 (x *Request) ProtoReflect() protoreflect.Message
- func (m *Request) SizeVT() (n int)
- func (m *Request) UnmarshalVT(dAtA []byte) error
- type Request_Nested
- func (x *Request_Nested) GetA() string
- func (m *Request_Nested) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Request_Nested) MarshalToVT(dAtA []byte) (int, error)
- func (m *Request_Nested) MarshalVT() (dAtA []byte, err error)
- func (x *Request_Nested) ProtoReflect() protoreflect.Message
- func (m *Request_Nested) SizeVT() (n int)
- func (m *Request_Nested) UnmarshalVT(dAtA []byte) error
- type Response
- func (x *Response) GetA() float64
- func (x *Response) GetB() float32
- func (x *Response) GetC() int32
- func (x *Response) GetD() int64
- func (x *Response) GetE() uint32
- func (x *Response) GetF() uint64
- func (x *Response) GetG() int32
- func (x *Response) GetH() int64
- func (x *Response) GetI() uint32
- func (x *Response) GetJ() uint64
- func (x *Response) GetK() int32
- func (x *Response) GetL() int64
- func (x *Response) GetM() bool
- func (x *Response) GetN() string
- func (x *Response) GetO() []byte
- func (x *Response) GetP() []string
- func (x *Response) GetQ() map[string]*IntValue
- func (x *Response) GetR() *Response_Nested
- func (x *Response) GetS() Enum
- 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 (x *Response) ProtoReflect() protoreflect.Message
- func (m *Response) SizeVT() (n int)
- func (m *Response) UnmarshalVT(dAtA []byte) error
- type Response_Nested
- func (x *Response_Nested) GetA() string
- func (m *Response_Nested) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *Response_Nested) MarshalToVT(dAtA []byte) (int, error)
- func (m *Response_Nested) MarshalVT() (dAtA []byte, err error)
- func (x *Response_Nested) ProtoReflect() protoreflect.Message
- func (m *Response_Nested) SizeVT() (n int)
- func (m *Response_Nested) UnmarshalVT(dAtA []byte) error
- type TestEmptyInputResponse
- func (x *TestEmptyInputResponse) GetOk() bool
- func (m *TestEmptyInputResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *TestEmptyInputResponse) MarshalToVT(dAtA []byte) (int, error)
- func (m *TestEmptyInputResponse) MarshalVT() (dAtA []byte, err error)
- func (x *TestEmptyInputResponse) ProtoReflect() protoreflect.Message
- func (m *TestEmptyInputResponse) SizeVT() (n int)
- func (m *TestEmptyInputResponse) UnmarshalVT(dAtA []byte) error
- type WazeroConfig
- type WazeroNewRuntime
Constants ¶
View Source
const FieldTestPluginAPIVersion = 1
Variables ¶
View Source
var ( Enum_name = map[int32]string{ 0: "A", 1: "B", 2: "C", } Enum_value = map[string]int32{ "A": 0, "B": 1, "C": 2, } )
Enum value maps for Enum.
Functions ¶
func WazeroModuleConfig ¶
func WazeroModuleConfig(moduleConfig wazero.ModuleConfig) wazeroConfigOption
func WazeroRuntime ¶
func WazeroRuntime(newRuntime WazeroNewRuntime) wazeroConfigOption
Types ¶
type ErrorRequest ¶
type ErrorRequest struct { ErrText string `protobuf:"bytes,1,opt,name=errText,proto3" json:"errText,omitempty"` // contains filtered or unexported fields }
func (*ErrorRequest) GetErrText ¶
func (x *ErrorRequest) GetErrText() string
func (*ErrorRequest) MarshalToSizedBufferVT ¶
func (m *ErrorRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*ErrorRequest) MarshalToVT ¶
func (m *ErrorRequest) MarshalToVT(dAtA []byte) (int, error)
func (*ErrorRequest) MarshalVT ¶
func (m *ErrorRequest) MarshalVT() (dAtA []byte, err error)
func (*ErrorRequest) ProtoReflect ¶
func (x *ErrorRequest) ProtoReflect() protoreflect.Message
func (*ErrorRequest) SizeVT ¶
func (m *ErrorRequest) SizeVT() (n int)
func (*ErrorRequest) UnmarshalVT ¶
func (m *ErrorRequest) UnmarshalVT(dAtA []byte) error
type FieldTest ¶
type FieldTest interface { Test(context.Context, *Request) (*Response, error) TestEmptyInput(context.Context, *emptypb.Empty) (*TestEmptyInputResponse, error) TestError(context.Context, *ErrorRequest) (*Response, error) }
go:plugin type=plugin version=1
type FieldTestPlugin ¶
type FieldTestPlugin struct {
// contains filtered or unexported fields
}
func NewFieldTestPlugin ¶
func NewFieldTestPlugin(ctx context.Context, opts ...wazeroConfigOption) (*FieldTestPlugin, error)
type IntValue ¶
type IntValue struct { A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"` // contains filtered or unexported fields }
func (*IntValue) MarshalToSizedBufferVT ¶
func (*IntValue) ProtoReflect ¶
func (x *IntValue) ProtoReflect() protoreflect.Message
func (*IntValue) UnmarshalVT ¶
type Request ¶
type Request struct { A float64 `protobuf:"fixed64,1,opt,name=a,proto3" json:"a,omitempty"` B float32 `protobuf:"fixed32,2,opt,name=b,proto3" json:"b,omitempty"` C int32 `protobuf:"varint,3,opt,name=c,proto3" json:"c,omitempty"` D int64 `protobuf:"varint,4,opt,name=d,proto3" json:"d,omitempty"` E uint32 `protobuf:"varint,5,opt,name=e,proto3" json:"e,omitempty"` F uint64 `protobuf:"varint,6,opt,name=f,proto3" json:"f,omitempty"` G int32 `protobuf:"zigzag32,7,opt,name=g,proto3" json:"g,omitempty"` H int64 `protobuf:"zigzag64,8,opt,name=h,proto3" json:"h,omitempty"` I uint32 `protobuf:"fixed32,9,opt,name=i,proto3" json:"i,omitempty"` J uint64 `protobuf:"fixed64,10,opt,name=j,proto3" json:"j,omitempty"` K int32 `protobuf:"fixed32,11,opt,name=k,proto3" json:"k,omitempty"` L int64 `protobuf:"fixed64,12,opt,name=l,proto3" json:"l,omitempty"` M bool `protobuf:"varint,13,opt,name=m,proto3" json:"m,omitempty"` N string `protobuf:"bytes,14,opt,name=n,proto3" json:"n,omitempty"` O []byte `protobuf:"bytes,15,opt,name=o,proto3" json:"o,omitempty"` P []string `protobuf:"bytes,16,rep,name=p,proto3" json:"p,omitempty"` Q map[string]*IntValue `` /* 144-byte string literal not displayed */ R *Request_Nested `protobuf:"bytes,18,opt,name=r,proto3" json:"r,omitempty"` S Enum `protobuf:"varint,19,opt,name=s,proto3,enum=greeting.Enum" json:"s,omitempty"` // contains filtered or unexported fields }
func (*Request) GetR ¶
func (x *Request) GetR() *Request_Nested
func (*Request) MarshalToSizedBufferVT ¶
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
func (*Request) UnmarshalVT ¶
type Request_Nested ¶
type Request_Nested struct { A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` // contains filtered or unexported fields }
func (*Request_Nested) GetA ¶
func (x *Request_Nested) GetA() string
func (*Request_Nested) MarshalToSizedBufferVT ¶
func (m *Request_Nested) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Request_Nested) MarshalToVT ¶
func (m *Request_Nested) MarshalToVT(dAtA []byte) (int, error)
func (*Request_Nested) MarshalVT ¶
func (m *Request_Nested) MarshalVT() (dAtA []byte, err error)
func (*Request_Nested) ProtoReflect ¶
func (x *Request_Nested) ProtoReflect() protoreflect.Message
func (*Request_Nested) SizeVT ¶
func (m *Request_Nested) SizeVT() (n int)
func (*Request_Nested) UnmarshalVT ¶
func (m *Request_Nested) UnmarshalVT(dAtA []byte) error
type Response ¶
type Response struct { A float64 `protobuf:"fixed64,1,opt,name=a,proto3" json:"a,omitempty"` B float32 `protobuf:"fixed32,2,opt,name=b,proto3" json:"b,omitempty"` C int32 `protobuf:"varint,3,opt,name=c,proto3" json:"c,omitempty"` D int64 `protobuf:"varint,4,opt,name=d,proto3" json:"d,omitempty"` E uint32 `protobuf:"varint,5,opt,name=e,proto3" json:"e,omitempty"` F uint64 `protobuf:"varint,6,opt,name=f,proto3" json:"f,omitempty"` G int32 `protobuf:"zigzag32,7,opt,name=g,proto3" json:"g,omitempty"` H int64 `protobuf:"zigzag64,8,opt,name=h,proto3" json:"h,omitempty"` I uint32 `protobuf:"fixed32,9,opt,name=i,proto3" json:"i,omitempty"` J uint64 `protobuf:"fixed64,10,opt,name=j,proto3" json:"j,omitempty"` K int32 `protobuf:"fixed32,11,opt,name=k,proto3" json:"k,omitempty"` L int64 `protobuf:"fixed64,12,opt,name=l,proto3" json:"l,omitempty"` M bool `protobuf:"varint,13,opt,name=m,proto3" json:"m,omitempty"` N string `protobuf:"bytes,14,opt,name=n,proto3" json:"n,omitempty"` O []byte `protobuf:"bytes,15,opt,name=o,proto3" json:"o,omitempty"` P []string `protobuf:"bytes,16,rep,name=p,proto3" json:"p,omitempty"` Q map[string]*IntValue `` /* 144-byte string literal not displayed */ R *Response_Nested `protobuf:"bytes,18,opt,name=r,proto3" json:"r,omitempty"` S Enum `protobuf:"varint,19,opt,name=s,proto3,enum=greeting.Enum" json:"s,omitempty"` // contains filtered or unexported fields }
func (*Response) GetR ¶
func (x *Response) GetR() *Response_Nested
func (*Response) MarshalToSizedBufferVT ¶
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
func (*Response) UnmarshalVT ¶
type Response_Nested ¶
type Response_Nested struct { A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` // contains filtered or unexported fields }
func (*Response_Nested) GetA ¶
func (x *Response_Nested) GetA() string
func (*Response_Nested) MarshalToSizedBufferVT ¶
func (m *Response_Nested) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*Response_Nested) MarshalToVT ¶
func (m *Response_Nested) MarshalToVT(dAtA []byte) (int, error)
func (*Response_Nested) MarshalVT ¶
func (m *Response_Nested) MarshalVT() (dAtA []byte, err error)
func (*Response_Nested) ProtoReflect ¶
func (x *Response_Nested) ProtoReflect() protoreflect.Message
func (*Response_Nested) SizeVT ¶
func (m *Response_Nested) SizeVT() (n int)
func (*Response_Nested) UnmarshalVT ¶
func (m *Response_Nested) UnmarshalVT(dAtA []byte) error
type TestEmptyInputResponse ¶
type TestEmptyInputResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*TestEmptyInputResponse) GetOk ¶
func (x *TestEmptyInputResponse) GetOk() bool
func (*TestEmptyInputResponse) MarshalToSizedBufferVT ¶
func (m *TestEmptyInputResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*TestEmptyInputResponse) MarshalToVT ¶
func (m *TestEmptyInputResponse) MarshalToVT(dAtA []byte) (int, error)
func (*TestEmptyInputResponse) MarshalVT ¶
func (m *TestEmptyInputResponse) MarshalVT() (dAtA []byte, err error)
func (*TestEmptyInputResponse) ProtoReflect ¶
func (x *TestEmptyInputResponse) ProtoReflect() protoreflect.Message
func (*TestEmptyInputResponse) SizeVT ¶
func (m *TestEmptyInputResponse) SizeVT() (n int)
func (*TestEmptyInputResponse) UnmarshalVT ¶
func (m *TestEmptyInputResponse) UnmarshalVT(dAtA []byte) error
type WazeroConfig ¶
type WazeroConfig struct {
// contains filtered or unexported fields
}
type WazeroNewRuntime ¶
func DefaultWazeroRuntime ¶
func DefaultWazeroRuntime() WazeroNewRuntime
Click to show internal directories.
Click to hide internal directories.