Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HandshakeConfig = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "BASIC_PLUGIN",
MagicCookieValue: "greeter",
}
View Source
var PluginSet = plugin.PluginSet{ "greeter": &GreeterPlugin{}, }
Functions ¶
This section is empty.
Types ¶
type ClientGreeter ¶
type ClientGreeter struct {
proto.GreeterClient
}
ClientGreeter is client side of the RPC (e.g. your program)
type GreeterPlugin ¶
GreaterPlugin implements plugin.Plugin
func (*GreeterPlugin) GRPCClient ¶
func (p *GreeterPlugin) GRPCClient(ctx context.Context, _ *plugin.GRPCBroker, client *grpc.ClientConn) (interface{}, error)
func (*GreeterPlugin) GRPCServer ¶
func (p *GreeterPlugin) GRPCServer(_ *plugin.GRPCBroker, server *grpc.Server) error
type ServerGreeter ¶
type ServerGreeter struct {
Greeter
proto.UnimplementedGreeterServer
}
ServerGreeter is the server side of the RPC (e.g. the plugin)
Click to show internal directories.
Click to hide internal directories.