types

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FnInstance

type FnInstance struct {
	Id       string    `json:"id"`
	Function *Function `json:"function"`
	Endpoint *url.URL  `json:"endpoint"`
}

type FnInvocationResponse

type FnInvocationResponse struct {
	// Considered as string as we don't do anything to this field, we'll just return it
	Payload any `json:"payload"`
	// ProcessMetadata contains metadata about the function execution
	ProcessMetadata FunctionProcessMetadata `json:"process_metadata"`
}

type Function

type Function struct {
	Id string `json:"id" redis:"id"`
	// We don't want to serialize the name as a Redis HSET as we use the ID as the key
	Name     string `json:"name" redis:"-"`
	ImageURL string `json:"image" redis:"imageUrl"`
}

type FunctionProcessMetadata

type FunctionProcessMetadata struct {
	ExecutionTimeMs int `json:"execution_time_ms"`
	// Array of strings containing the logs of the function execution
	// it might be equal to nil if the runtime doesn't support logs
	Logs []string `json:"logs"`
}

Jump to

Keyboard shortcuts

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