shared

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionCall

type FunctionCall struct {
	FuncName string
	Args     []interface{}
}

type TemplateFuncs

type TemplateFuncs interface {
	GetFuncNames() []string
	CallFunction(call FunctionCall) (interface{}, error)
}

type TemplateFuncsPlugin

type TemplateFuncsPlugin struct {
	Impl TemplateFuncs
}

func (TemplateFuncsPlugin) Client

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

func (*TemplateFuncsPlugin) Server

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

type TemplateFuncsRPC

type TemplateFuncsRPC struct {
	// contains filtered or unexported fields
}

func (*TemplateFuncsRPC) CallFunction

func (g *TemplateFuncsRPC) CallFunction(args FunctionCall) (interface{}, error)

func (*TemplateFuncsRPC) GetFuncNames

func (g *TemplateFuncsRPC) GetFuncNames() []string

type TemplateFuncsRPCServer

type TemplateFuncsRPCServer struct {
	Impl TemplateFuncs
}

func (*TemplateFuncsRPCServer) CallFunction

func (s *TemplateFuncsRPCServer) CallFunction(args FunctionCall, resp *interface{}) error

func (*TemplateFuncsRPCServer) GetFuncNames

func (s *TemplateFuncsRPCServer) GetFuncNames(args interface{}, resp *[]string) error

Jump to

Keyboard shortcuts

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