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()
Click to show internal directories.
Click to hide internal directories.