runtime

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Start(ctx context.Context) error
	RegisterHTTPFunction(
		ctx ofctx.RuntimeContext,
		prePlugins []plugin.Plugin,
		postPlugins []plugin.Plugin,
		fn func(http.ResponseWriter, *http.Request),
	) error
	RegisterOpenFunction(
		ctx ofctx.RuntimeContext,
		prePlugins []plugin.Plugin,
		postPlugins []plugin.Plugin,
		fn func(ofctx.Context, []byte) (ofctx.Out, error),
	) error
	RegisterCloudEventFunction(
		ctx context.Context,
		funcContex ofctx.RuntimeContext,
		prePlugins []plugin.Plugin,
		postPlugins []plugin.Plugin,
		fn func(context.Context, cloudevents.Event) error,
	) error
	Name() ofctx.Runtime
	GetHandler() interface{}
}

type RuntimeManager

type RuntimeManager struct {
	FuncContext ofctx.RuntimeContext
	FuncOut     ofctx.Out
	// contains filtered or unexported fields
}

func NewRuntimeManager

func NewRuntimeManager(funcContext ofctx.RuntimeContext, prePlugin []plugin.Plugin, postPlugin []plugin.Plugin) *RuntimeManager

func (*RuntimeManager) FunctionRunWrapperWithHooks

func (rm *RuntimeManager) FunctionRunWrapperWithHooks(fn interface{})

func (*RuntimeManager) ProcessPostHooks

func (rm *RuntimeManager) ProcessPostHooks()

func (*RuntimeManager) ProcessPreHooks

func (rm *RuntimeManager) ProcessPreHooks()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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