Versions in this module Expand all Collapse all v0 v0.0.3 Nov 22, 2023 v0.0.2 Nov 22, 2023 Changes in this version + const PluginTypeEnvName + const Version + var HandshakeConfig = plugin.HandshakeConfig + var Logger = hclog.New(&hclog.LoggerOptions{ ... }) + func CallFunc(fn reflect.Value, args ...interface{}) (interface{}, error) + func CloseLogFile() error + func ConvertCommonName(name string) string + func InitLogger(logLevel hclog.Level, logFile string, disableTime bool) hclog.Logger + func Register(funcName string, fn interface{}) + func Serve() + type GRPCPlugin struct + Impl IFuncCaller + func (p *GRPCPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error) + func (p *GRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error + type IFuncCaller interface + Call func(funcName string, args ...interface{}) (interface{}, error) + GetNames func() ([]string, error) + type RPCPlugin struct + Impl IFuncCaller + func (p *RPCPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error) + func (p *RPCPlugin) Server(*plugin.MuxBroker) (interface{}, error)