runtime

package
v0.385.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Functions

func GetVersion

func GetVersion() string

func NewApiHandler added in v0.372.0

func NewApiHandler(s *proto.Schema) common.HandlerFunc

NewApiHandler handles requests to the customer APIs

func NewAuthHandler added in v0.372.0

func NewAuthHandler(schema *proto.Schema) func(http.ResponseWriter, *http.Request) common.Response

NewAuthHandler handles requests to the authentication endpoints

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.

Jump to

Keyboard shortcuts

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