runtime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromProto

func FromProto(req *rpc.InvocationRequest, fields map[string]*funcField) (map[string]reflect.Value, error)

FromProto converts protobuf parameters to golang values

func ToProto

func ToProto(values []reflect.Value, fields map[string]*funcField) ([]*rpc.ParameterBinding, *rpc.TypedData, *rpc.StatusResult, error)

ToProto converts Values to grpc protocol results

Types

type Registry

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

Registry contains all information about user functions and how to execute them

func NewRegistry

func NewRegistry() *Registry

NewRegistry returns a new function registry

func (Registry) ExecuteFunc

func (r Registry) ExecuteFunc(req *rpc.InvocationRequest, eventStream rpc.FunctionRpc_EventStreamClient) (response *rpc.InvocationResponse)

ExecuteFunc takes an InvocationRequest and executes the function with corresponding function ID

func (Registry) LoadFunc

func (r Registry) LoadFunc(req *rpc.FunctionLoadRequest) error

LoadFunc populates information about the func from the compiled plugin and from parsing the source code

Jump to

Keyboard shortcuts

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