package foo
import "github.com/knqyf263/go-plugin/tests/import/proto/foo"
Index ¶
- Constants
- Variables
- type Foo
- type FooPlugin
- func NewFooPlugin(ctx context.Context, opt FooPluginOption) (*FooPlugin, error)
- func (p *FooPlugin) Load(ctx context.Context, pluginPath string) (Foo, error)
- type FooPluginOption
- type Request
- func (x *Request) GetA() string
- 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
Constants ¶
const FooPluginAPIVersion = 1
Variables ¶
var ( ErrInvalidLength = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflow = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group") )
Types ¶
type Foo ¶
go:plugin type=plugin version=1
type FooPlugin ¶
type FooPlugin struct {
// contains filtered or unexported fields
}
func NewFooPlugin ¶
func NewFooPlugin(ctx context.Context, opt FooPluginOption) (*FooPlugin, error)
func (*FooPlugin) Load ¶
type FooPluginOption ¶
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 (*Request) MarshalToSizedBufferVT ¶
func (*Request) MarshalToVT ¶
func (*Request) MarshalVT ¶
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
func (*Request) SizeVT ¶
func (*Request) UnmarshalVT ¶
Source Files ¶
foo.pb.go foo_host.pb.go foo_vtproto.pb.go
- Version
- v0.2.0
- Published
- Nov 5, 2022
- Platform
- js/wasm
- Imports
- 14 packages
- Last checked
- 3 days ago –
Tools for package owners.