foo

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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const FooPluginAPIVersion = 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 Foo

type Foo interface {
	Hello(context.Context, *Request) (*bar.Reply, error)
}

go:plugin type=plugin version=1

type FooPlugin

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

func NewFooPlugin

func NewFooPlugin(ctx context.Context, opts ...wazeroConfigOption) (*FooPlugin, error)

func (*FooPlugin) Load

func (p *FooPlugin) Load(ctx context.Context, pluginPath string) (foo, error)

type Request

type Request struct {
	A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) GetA

func (x *Request) GetA() string

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