proto

package
v0.0.0-...-80e6f32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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.

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)

Functions

func WazeroModuleConfig

func WazeroModuleConfig(moduleConfig wazero.ModuleConfig) wazeroConfigOption

func WazeroRuntime

func WazeroRuntime(newRuntime WazeroNewRuntime) wazeroConfigOption

Types

type Enum

type Enum int32
const (
	Enum_A Enum = 0
	Enum_B Enum = 1
	Enum_C Enum = 2
)

func (Enum) Enum

func (x Enum) Enum() *Enum

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)

func (*FieldTestPlugin) Load

func (p *FieldTestPlugin) Load(ctx context.Context, pluginPath string) (fieldTest, 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) GetA

func (x *IntValue) GetA() int32

func (*IntValue) MarshalToSizedBufferVT

func (m *IntValue) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*IntValue) MarshalToVT

func (m *IntValue) MarshalToVT(dAtA []byte) (int, error)

func (*IntValue) MarshalVT

func (m *IntValue) MarshalVT() (dAtA []byte, err error)

func (*IntValue) ProtoReflect

func (x *IntValue) ProtoReflect() protoreflect.Message

func (*IntValue) SizeVT

func (m *IntValue) SizeVT() (n int)

func (*IntValue) UnmarshalVT

func (m *IntValue) UnmarshalVT(dAtA []byte) error

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) GetA

func (x *Request) GetA() float64

func (*Request) GetB

func (x *Request) GetB() float32

func (*Request) GetC

func (x *Request) GetC() int32

func (*Request) GetD

func (x *Request) GetD() int64

func (*Request) GetE

func (x *Request) GetE() uint32

func (*Request) GetF

func (x *Request) GetF() uint64

func (*Request) GetG

func (x *Request) GetG() int32

func (*Request) GetH

func (x *Request) GetH() int64

func (*Request) GetI

func (x *Request) GetI() uint32

func (*Request) GetJ

func (x *Request) GetJ() uint64

func (*Request) GetK

func (x *Request) GetK() int32

func (*Request) GetL

func (x *Request) GetL() int64

func (*Request) GetM

func (x *Request) GetM() bool

func (*Request) GetN

func (x *Request) GetN() string

func (*Request) GetO

func (x *Request) GetO() []byte

func (*Request) GetP

func (x *Request) GetP() []string

func (*Request) GetQ

func (x *Request) GetQ() map[string]*IntValue

func (*Request) GetR

func (x *Request) GetR() *Request_Nested

func (*Request) GetS

func (x *Request) GetS() Enum

func (*Request) MarshalToSizedBufferVT

func (m *Request) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Request) MarshalToVT

func (m *Request) MarshalToVT(dAtA []byte) (int, error)

func (*Request) MarshalVT

func (m *Request) MarshalVT() (dAtA []byte, err error)

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) SizeVT

func (m *Request) SizeVT() (n int)

func (*Request) UnmarshalVT

func (m *Request) UnmarshalVT(dAtA []byte) error

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) GetA

func (x *Response) GetA() float64

func (*Response) GetB

func (x *Response) GetB() float32

func (*Response) GetC

func (x *Response) GetC() int32

func (*Response) GetD

func (x *Response) GetD() int64

func (*Response) GetE

func (x *Response) GetE() uint32

func (*Response) GetF

func (x *Response) GetF() uint64

func (*Response) GetG

func (x *Response) GetG() int32

func (*Response) GetH

func (x *Response) GetH() int64

func (*Response) GetI

func (x *Response) GetI() uint32

func (*Response) GetJ

func (x *Response) GetJ() uint64

func (*Response) GetK

func (x *Response) GetK() int32

func (*Response) GetL

func (x *Response) GetL() int64

func (*Response) GetM

func (x *Response) GetM() bool

func (*Response) GetN

func (x *Response) GetN() string

func (*Response) GetO

func (x *Response) GetO() []byte

func (*Response) GetP

func (x *Response) GetP() []string

func (*Response) GetQ

func (x *Response) GetQ() map[string]*IntValue

func (*Response) GetR

func (x *Response) GetR() *Response_Nested

func (*Response) GetS

func (x *Response) GetS() Enum

func (*Response) MarshalToSizedBufferVT

func (m *Response) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*Response) MarshalToVT

func (m *Response) MarshalToVT(dAtA []byte) (int, error)

func (*Response) MarshalVT

func (m *Response) MarshalVT() (dAtA []byte, err error)

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) SizeVT

func (m *Response) SizeVT() (n int)

func (*Response) UnmarshalVT

func (m *Response) UnmarshalVT(dAtA []byte) error

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

type WazeroNewRuntime func(context.Context) (wazero.Runtime, error)

func DefaultWazeroRuntime

func DefaultWazeroRuntime() WazeroNewRuntime

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL