handler

package
v0.0.0-...-bef5c4b Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// LambdaAgentIdentifier is the header key for passing agent's id
	LambdaAgentIdentifier        string = "Lambda-Extension-Identifier"
	LambdaAgentFunctionErrorType string = "Lambda-Extension-Function-Error-Type"
	// LambdaAgentName is agent name, provided by user (internal agents) or equal to executable basename (external agents)
	LambdaAgentName string = "Lambda-Extension-Name"

	ErrAgentIdentifierMissing string = "Extension.MissingExtensionIdentifier"
	ErrAgentIdentifierInvalid string = "Extension.InvalidExtensionIdentifier"

	StateTransitionFailedForExtensionMessageFormat string = "State transition from %s to %s failed for extension %s. Error: %s"
	StateTransitionFailedForRuntimeMessageFormat   string = "State transition from %s to %s failed for runtime. Error: %s"
)
View Source
const (
	StreamingFunctionResponseMode = "streaming"
)

Variables

This section is empty.

Functions

func NewAgentExitErrorHandler

func NewAgentExitErrorHandler(registrationService core.RegistrationService) http.Handler

NewAgentExitErrorHandler returns a new instance of http handler for serving /extension/exit/error

func NewAgentInitErrorHandler

func NewAgentInitErrorHandler(registrationService core.RegistrationService) http.Handler

NewAgentInitErrorHandler returns a new instance of http handler for serving /extension/init/error

func NewAgentNextHandler

func NewAgentNextHandler(registrationService core.RegistrationService, renderingService *rendering.EventRenderingService) http.Handler

NewAgentNextHandler returns a new instance of http handler for serving /extension/event/next

func NewAgentRegisterHandler

func NewAgentRegisterHandler(registrationService core.RegistrationService) http.Handler

NewAgentRegisterHandler returns a new instance of http handler for serving /extension/register

func NewCredentialsHandler

func NewCredentialsHandler(credentialsService core.CredentialsService) http.Handler

func NewInitErrorHandler

func NewInitErrorHandler(registrationService core.RegistrationService) http.Handler

NewInitErrorHandler returns a new instance of http handler for serving /runtime/init/error.

func NewInvocationErrorHandler

func NewInvocationErrorHandler(registrationService core.RegistrationService) http.Handler

NewInvocationErrorHandler returns a new instance of http handler for serving /runtime/invocation/{awsrequestid}/error.

func NewInvocationNextHandler

func NewInvocationNextHandler(registrationService core.RegistrationService, renderingService *rendering.EventRenderingService) http.Handler

NewInvocationNextHandler returns a new instance of http handler for serving /runtime/invocation/next.

func NewInvocationResponseHandler

func NewInvocationResponseHandler(registrationService core.RegistrationService) http.Handler

NewInvocationResponseHandler returns a new instance of http handler for serving /runtime/invocation/{awsrequestid}/response.

func NewPingHandler

func NewPingHandler() http.Handler

NewPingHandler returns a new instance of http handler for serving /ping.

func NewRestoreErrorHandler

func NewRestoreErrorHandler(registrationService core.RegistrationService) http.Handler

func NewRestoreNextHandler

func NewRestoreNextHandler(registrationService core.RegistrationService, renderingService *rendering.EventRenderingService) http.Handler

func NewRuntimeLogsAPIStubHandler

func NewRuntimeLogsAPIStubHandler() http.Handler

NewRuntimeLogsAPIStubHandler returns a new instance of http handler for serving /runtime/logs when a telemetry service implementation is absent

func NewRuntimeTelemetryAPIStubHandler

func NewRuntimeTelemetryAPIStubHandler() http.Handler

NewRuntimeTelemetryAPIStubHandler returns a new instance of http handler for serving /runtime/logs when a telemetry service implementation is absent

func NewRuntimeTelemetrySubscriptionHandler

func NewRuntimeTelemetrySubscriptionHandler(registrationService core.RegistrationService, telemetrySubscription telemetry.SubscriptionAPI) http.Handler

NewRuntimeTelemetrySubscriptionHandler returns a new instance of http handler for serving /runtime/logs

Types

type CtxKey

type CtxKey int

A CtxKey type is used as a key for storing values in the request context.

const (
	AgentIDCtxKey CtxKey = iota
)

AgentIDCtxKey is the context key for fetching agent's UUID

type ErrAgentIdentifierUnknown

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

func NewErrAgentIdentifierUnknown

func NewErrAgentIdentifierUnknown(agentID uuid.UUID) *ErrAgentIdentifierUnknown

func (*ErrAgentIdentifierUnknown) Error

func (e *ErrAgentIdentifierUnknown) Error() string

type RegisterRequest

type RegisterRequest struct {
	Events []core.Event `json:"events"`
}

RegisterRequest represent /extension/register JSON body

Jump to

Keyboard shortcuts

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