proto

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const EmptyTestPluginAPIVersion = 1
View Source
const KnownTypesTestPluginAPIVersion = 1

Variables

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 added in v0.6.0

func WazeroModuleConfig(moduleConfig wazero.ModuleConfig) wazeroConfigOption

func WazeroRuntime added in v0.6.0

func WazeroRuntime(newRuntime WazeroNewRuntime) wazeroConfigOption

Types

type EmptyTest

type EmptyTest interface {
	DoNothing(context.Context, *emptypb.Empty) (*emptypb.Empty, error)
}

go:plugin type=plugin version=1

type EmptyTestPlugin

type EmptyTestPlugin struct {
	// contains filtered or unexported fields
}

func NewEmptyTestPlugin

func NewEmptyTestPlugin(ctx context.Context, opts ...wazeroConfigOption) (*EmptyTestPlugin, error)

func (*EmptyTestPlugin) Load

func (p *EmptyTestPlugin) Load(ctx context.Context, pluginPath string) (emptyTest, error)

type KnownTypesTest

type KnownTypesTest interface {
	Test(context.Context, *Request) (*Response, error)
}

go:plugin type=plugin version=1

type KnownTypesTestPlugin

type KnownTypesTestPlugin struct {
	// contains filtered or unexported fields
}

func NewKnownTypesTestPlugin

func NewKnownTypesTestPlugin(ctx context.Context, opts ...wazeroConfigOption) (*KnownTypesTestPlugin, error)

func (*KnownTypesTestPlugin) Load

func (p *KnownTypesTestPlugin) Load(ctx context.Context, pluginPath string) (knownTypesTest, error)

type Request

type Request struct {

	// duration
	A *durationpb.Duration `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	// timestamp
	B *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"`
	// struct
	C *structpb.Value `protobuf:"bytes,3,opt,name=c,proto3" json:"c,omitempty"`
	// wrappers
	D *wrapperspb.BoolValue   `protobuf:"bytes,4,opt,name=d,proto3" json:"d,omitempty"`
	E *wrapperspb.BytesValue  `protobuf:"bytes,5,opt,name=e,proto3" json:"e,omitempty"`
	F *wrapperspb.DoubleValue `protobuf:"bytes,6,opt,name=f,proto3" json:"f,omitempty"`
	G *wrapperspb.FloatValue  `protobuf:"bytes,7,opt,name=g,proto3" json:"g,omitempty"`
	H *wrapperspb.Int32Value  `protobuf:"bytes,8,opt,name=h,proto3" json:"h,omitempty"`
	I *wrapperspb.Int64Value  `protobuf:"bytes,9,opt,name=i,proto3" json:"i,omitempty"`
	J *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=j,proto3" json:"j,omitempty"`
	K *wrapperspb.UInt32Value `protobuf:"bytes,11,opt,name=k,proto3" json:"k,omitempty"`
	L *wrapperspb.UInt64Value `protobuf:"bytes,12,opt,name=l,proto3" json:"l,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) GetA

func (x *Request) GetA() *durationpb.Duration

func (*Request) GetB

func (x *Request) GetB() *timestamppb.Timestamp

func (*Request) GetC

func (x *Request) GetC() *structpb.Value

func (*Request) GetD

func (x *Request) GetD() *wrapperspb.BoolValue

func (*Request) GetE

func (x *Request) GetE() *wrapperspb.BytesValue

func (*Request) GetF

func (x *Request) GetF() *wrapperspb.DoubleValue

func (*Request) GetG

func (x *Request) GetG() *wrapperspb.FloatValue

func (*Request) GetH

func (x *Request) GetH() *wrapperspb.Int32Value

func (*Request) GetI

func (x *Request) GetI() *wrapperspb.Int64Value

func (*Request) GetJ

func (x *Request) GetJ() *wrapperspb.StringValue

func (*Request) GetK

func (x *Request) GetK() *wrapperspb.UInt32Value

func (*Request) GetL

func (x *Request) GetL() *wrapperspb.UInt64Value

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 Response

type Response struct {
	A *durationpb.Duration    `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	B *timestamppb.Timestamp  `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"`
	C *structpb.Value         `protobuf:"bytes,3,opt,name=c,proto3" json:"c,omitempty"`
	D *wrapperspb.BoolValue   `protobuf:"bytes,4,opt,name=d,proto3" json:"d,omitempty"`
	E *wrapperspb.BytesValue  `protobuf:"bytes,5,opt,name=e,proto3" json:"e,omitempty"`
	F *wrapperspb.DoubleValue `protobuf:"bytes,6,opt,name=f,proto3" json:"f,omitempty"`
	G *wrapperspb.FloatValue  `protobuf:"bytes,7,opt,name=g,proto3" json:"g,omitempty"`
	H *wrapperspb.Int32Value  `protobuf:"bytes,8,opt,name=h,proto3" json:"h,omitempty"`
	I *wrapperspb.Int64Value  `protobuf:"bytes,9,opt,name=i,proto3" json:"i,omitempty"`
	J *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=j,proto3" json:"j,omitempty"`
	K *wrapperspb.UInt32Value `protobuf:"bytes,11,opt,name=k,proto3" json:"k,omitempty"`
	L *wrapperspb.UInt64Value `protobuf:"bytes,12,opt,name=l,proto3" json:"l,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) GetA

func (x *Response) GetA() *durationpb.Duration

func (*Response) GetB

func (x *Response) GetB() *timestamppb.Timestamp

func (*Response) GetC

func (x *Response) GetC() *structpb.Value

func (*Response) GetD

func (x *Response) GetD() *wrapperspb.BoolValue

func (*Response) GetE

func (x *Response) GetE() *wrapperspb.BytesValue

func (*Response) GetF

func (x *Response) GetF() *wrapperspb.DoubleValue

func (*Response) GetG

func (x *Response) GetG() *wrapperspb.FloatValue

func (*Response) GetH

func (x *Response) GetH() *wrapperspb.Int32Value

func (*Response) GetI

func (x *Response) GetI() *wrapperspb.Int64Value

func (*Response) GetJ

func (x *Response) GetJ() *wrapperspb.StringValue

func (*Response) GetK

func (x *Response) GetK() *wrapperspb.UInt32Value

func (*Response) GetL

func (x *Response) GetL() *wrapperspb.UInt64Value

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 WazeroConfig added in v0.6.0

type WazeroConfig struct {
	// contains filtered or unexported fields
}

type WazeroNewRuntime added in v0.6.0

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

func DefaultWazeroRuntime added in v0.7.0

func DefaultWazeroRuntime() WazeroNewRuntime

Jump to

Keyboard shortcuts

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