lambdaext

package module
v0.2.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 3 Imported by: 0

README

AWS Lambda Extensions library

Go Reference ci CodeQL codecov

This repository contains framework and helper functions to build your own AWS lambda extensions in Go.

Overview

Repository packages:

You can find more information on how to build your lambda extensions in AWS documentation.

Examples

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSLambdaRuntimeAPI

type AWSLambdaRuntimeAPI string

AWSLambdaRuntimeAPI is the API endpoint retrieved from the AWS_LAMBDA_RUNTIME_API environment variable from execution environment.

type DurationMs

type DurationMs time.Duration

DurationMs is a time.Duration, parsed from numeric milliseconds value.

func (DurationMs) MarshalJSON

func (d DurationMs) MarshalJSON() ([]byte, error)

func (DurationMs) String

func (d DurationMs) String() string

func (*DurationMs) UnmarshalJSON

func (d *DurationMs) UnmarshalJSON(b []byte) error

type ExtensionName

type ExtensionName string

ExtensionName is the full file name of the extension.

type FunctionVersion

type FunctionVersion string

FunctionVersion is created a new version of your function each time that you publish the function. https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html

type InitType

type InitType string

InitType describes how Lambda initialized the environment. https://docs.aws.amazon.com/lambda/latest/dg/telemetry-schema-reference.html#InitType

const (
	InitTypeOnDemand               InitType = "on-demand"
	InitTypeProvisionedConcurrency InitType = "provisioned-concurrency"
)

type RequestID

type RequestID string

type TracingType

type TracingType string

TracingType describes the type of tracing in a TraceContext object. https://docs.aws.amazon.com/lambda/latest/dg/telemetry-schema-reference.html#TracingType

const TracingTypeAWSXRay TracingType = "X-Amzn-Trace-Id"

type TracingValue

type TracingValue string

Directories

Path Synopsis
examples
Package extapi implements a client for Lambda Extensions API and Extension handler to abstract interactions with the API.
Package extapi implements a client for Lambda Extensions API and Extension handler to abstract interactions with the API.
Package logsapi implements logs receiving HTTP server and decoding function to use Lambda Logs API.
Package logsapi implements logs receiving HTTP server and decoding function to use Lambda Logs API.
Package telemetryapi implements events receiving HTTP server and decoding function to use Lambda Telemetry API.
Package telemetryapi implements events receiving HTTP server and decoding function to use Lambda Telemetry API.
otel
Package otel implements conversion from Telemetry API events into OpenTelemetry trace spans.
Package otel implements conversion from Telemetry API events into OpenTelemetry trace spans.
tests
rie Module

Jump to

Keyboard shortcuts

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