Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PluginMap = map[string]plugin.PluginClient{ "kv_grpc": &KVGRPCPlugin{}, "kv": &KVPlugin{}, }
PluginMap is the map of plugins we can dispense.
Functions ¶
This section is empty.
Types ¶
type KVGRPCPlugin ¶
type KVGRPCPlugin struct {
// GRPCPlugin must still implement the Plugin interface
plugin.Plugin
// Concrete implementation, written in Go. This is only used for plugins
// that are written in Go.
Impl KV
}
This is the implementation of plugin.GRPCPlugin so we can serve/consume this.
func (*KVGRPCPlugin) GRPCClient ¶
func (p *KVGRPCPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)
func (*KVGRPCPlugin) GRPCServer ¶
func (p *KVGRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error
Click to show internal directories.
Click to hide internal directories.