fungo

package
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = shared.Version

Functions

func Register

func Register(funcName string, fn interface{})

Register registers a plugin function. Every plugin function must be registered before Serve() is called.

func Serve

func Serve()

default to run plugin in gRPC mode

Types

type GRPCPlugin

type GRPCPlugin struct {
	plugin.Plugin
	Impl shared.IFuncCaller
}

GRPCPlugin implements hashicorp's plugin.GRPCPlugin.

func (*GRPCPlugin) GRPCClient

func (p *GRPCPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*GRPCPlugin) GRPCServer

func (p *GRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

type RPCPlugin

type RPCPlugin struct {
	Impl shared.IFuncCaller
}

RPCPlugin implements hashicorp's plugin.Plugin.

func (*RPCPlugin) Client

func (p *RPCPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (*RPCPlugin) Server

func (p *RPCPlugin) Server(*plugin.MuxBroker) (interface{}, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL