handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFunctionNotFound              = errors.New("function not found")
	ErrFunctionCantBeMarkedAsHealthy = errors.New("one or more instances of the function can't be marked as healthy")
)
View Source
var (
	ErrNameConflict = errors.New("a function already exists with the given name")
)

Functions

func CreateFunctionHandler

func CreateFunctionHandler(state state.State, orch orchestration.Orchestrator) gin.HandlerFunc

func HealthHandler

func HealthHandler(state state.State) gin.HandlerFunc

func InvokeFunctionHandler

func InvokeFunctionHandler(s state.State, orch orchestration.Orchestrator) gin.HandlerFunc

func ListFunctionsHandler

func ListFunctionsHandler(s state.State, orch orchestration.Orchestrator) gin.HandlerFunc

Types

type APIError

type APIError struct {
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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