runtime

package
v0.369.2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Functions

func GetVersion

func GetVersion() string

func NewHandler

func NewHandler(s *proto.Schema) common.ApiHandlerFunc

func NewHttpHandler

func NewHttpHandler(currSchema *proto.Schema) http.Handler

Types

type JobHandler

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

func NewJobHandler

func NewJobHandler(currSchema *proto.Schema) JobHandler

func (JobHandler) RunJob

func (handler JobHandler) RunJob(ctx context.Context, jobName string, inputs map[string]any, trigger functions.TriggerType) error

RunJob will run the job function in the runtime.

type SubscriberHandler

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

func NewSubscriberHandler

func NewSubscriberHandler(currSchema *proto.Schema) SubscriberHandler

func (SubscriberHandler) RunSubscriber

func (handler SubscriberHandler) RunSubscriber(ctx context.Context, subscriberName string, event *events.Event) error

RunSubscriber will run the subscriber function in the runtime with the event payload.

Directories

Path Synopsis
apis

Jump to

Keyboard shortcuts

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