lambda

package
v0.0.0-...-ec8dcbf Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PulsarTrigger is pulsar input topic trigger
	PulsarTrigger = "pulsar-topic"

	// HTTPTrigger is http trigger
	HTTPTrigger = "http"

	// CronTrigger is time based cron trigger
	CronTrigger = "cron"
)

Variables

This section is empty.

Functions

func CreateFnInstance

func CreateFnInstance(cfg model.FunctionConfig) (string, error)

CreateFnInstance creates function instance

func GetSourceFilePath

func GetSourceFilePath(tenant string) string

GetSourceFilePath gets the directory to source file

func HealthCheck

func HealthCheck(url string) error

HealthCheck checks the any language pack is running

func HealthCheckRetry

func HealthCheckRetry(url string, retries int) error

HealthCheckRetry is health check with retry

func StartNodeInstance

func StartNodeInstance(cfg model.FunctionConfig) (url string, err error)

StartNodeInstance starts node/javascript instance

func ValidateFunctionConfig

func ValidateFunctionConfig(cfg *model.FunctionTopic) error

ValidateFunctionConfig validates function config

Types

type FunctionInstance

type FunctionInstance struct {
	ID  string
	URI url.URL

	Pid       int
	CreatedAt time.Time
	UpdatedAt time.Time
	// contains filtered or unexported fields
}

FunctionInstance is the function worker instance running

type WorkerSignal

type WorkerSignal struct{}

WorkerSignal is a signal object to pass for channel

Jump to

Keyboard shortcuts

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