package greeting
import "github.com/knqyf263/go-plugin/examples/helloworld/greeting"
Index ¶
- Constants
- Variables
- type GreetReply
- func (x *GreetReply) GetMessage() string
- func (m *GreetReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GreetReply) MarshalToVT(dAtA []byte) (int, error)
- func (m *GreetReply) MarshalVT() (dAtA []byte, err error)
- func (x *GreetReply) ProtoReflect() protoreflect.Message
- func (m *GreetReply) SizeVT() (n int)
- func (m *GreetReply) UnmarshalVT(dAtA []byte) error
- type GreetRequest
- func (x *GreetRequest) GetName() string
- func (m *GreetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *GreetRequest) MarshalToVT(dAtA []byte) (int, error)
- func (m *GreetRequest) MarshalVT() (dAtA []byte, err error)
- func (x *GreetRequest) ProtoReflect() protoreflect.Message
- func (m *GreetRequest) SizeVT() (n int)
- func (m *GreetRequest) UnmarshalVT(dAtA []byte) error
- type Greeter
- type GreeterPlugin
- func NewGreeterPlugin(ctx context.Context, opt GreeterPluginOption) (*GreeterPlugin, error)
- func (p *GreeterPlugin) Close(ctx context.Context) (err error)
- func (p *GreeterPlugin) Load(ctx context.Context, pluginPath string) (Greeter, error)
- type GreeterPluginOption
Constants ¶
const GreeterPluginAPIVersion = 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 GreetReply ¶
type GreetReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
The response message containing the greetings
func (*GreetReply) GetMessage ¶
func (x *GreetReply) GetMessage() string
func (*GreetReply) MarshalToSizedBufferVT ¶
func (m *GreetReply) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GreetReply) MarshalToVT ¶
func (m *GreetReply) MarshalToVT(dAtA []byte) (int, error)
func (*GreetReply) MarshalVT ¶
func (m *GreetReply) MarshalVT() (dAtA []byte, err error)
func (*GreetReply) ProtoReflect ¶
func (x *GreetReply) ProtoReflect() protoreflect.Message
func (*GreetReply) SizeVT ¶
func (m *GreetReply) SizeVT() (n int)
func (*GreetReply) UnmarshalVT ¶
func (m *GreetReply) UnmarshalVT(dAtA []byte) error
type GreetRequest ¶
type GreetRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
The request message containing the user's name.
func (*GreetRequest) GetName ¶
func (x *GreetRequest) GetName() string
func (*GreetRequest) MarshalToSizedBufferVT ¶
func (m *GreetRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)
func (*GreetRequest) MarshalToVT ¶
func (m *GreetRequest) MarshalToVT(dAtA []byte) (int, error)
func (*GreetRequest) MarshalVT ¶
func (m *GreetRequest) MarshalVT() (dAtA []byte, err error)
func (*GreetRequest) ProtoReflect ¶
func (x *GreetRequest) ProtoReflect() protoreflect.Message
func (*GreetRequest) SizeVT ¶
func (m *GreetRequest) SizeVT() (n int)
func (*GreetRequest) UnmarshalVT ¶
func (m *GreetRequest) UnmarshalVT(dAtA []byte) error
type Greeter ¶
type Greeter interface { // Sends a greeting Greet(context.Context, GreetRequest) (GreetReply, error) }
The greeting service definition. go:plugin type=plugin version=1
type GreeterPlugin ¶
type GreeterPlugin struct {
// contains filtered or unexported fields
}
func NewGreeterPlugin ¶
func NewGreeterPlugin(ctx context.Context, opt GreeterPluginOption) (*GreeterPlugin, error)
func (*GreeterPlugin) Close ¶
func (p *GreeterPlugin) Close(ctx context.Context) (err error)
func (*GreeterPlugin) Load ¶
type GreeterPluginOption ¶
Source Files ¶
greet.pb.go greet_host.pb.go greet_vtproto.pb.go
- Version
- v0.3.0
- Published
- Nov 21, 2022
- Platform
- js/wasm
- Imports
- 13 packages
- Last checked
- 3 days ago –
Tools for package owners.