lambdacontext

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 3 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.

README

Overview

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FunctionName string

FunctionName the name of the current Lambda Function

View Source
var FunctionVersion string

FunctionVersion is the published version of the current instance of the Lambda Function

View Source
var LogGroupName string

LogGroupName is the name of the log group that contains the log streams of the current Lambda Function

View Source
var LogStreamName string

LogStreamName name of the log stream that the current Lambda Function's logs will be sent to

View Source
var MemoryLimitInMB int

MemoryLimitInMB is the configured memory limit for the current instance of the Lambda Function

Functions

func NewContext

func NewContext(parent context.Context, lc *LambdaContext) context.Context

NewContext returns a new Context that carries value lc.

Types

type ClientApplication

type ClientApplication struct {
	InstallationID string `json:"installation_id"`
	AppTitle       string `json:"app_title"`
	AppVersionCode string `json:"app_version_code"`
	AppPackageName string `json:"app_package_name"`
}

ClientApplication is metadata about the calling application.

type ClientContext

type ClientContext struct {
	Client ClientApplication
	Env    map[string]string `json:"env"`
	Custom map[string]string `json:"custom"`
}

ClientContext is information about the client application passed by the calling application.

type CognitoIdentity

type CognitoIdentity struct {
	CognitoIdentityID     string
	CognitoIdentityPoolID string
}

CognitoIdentity is the cognito identity used by the calling application.

type LambdaContext

type LambdaContext struct {
	AwsRequestID       string
	InvokedFunctionArn string
	Identity           CognitoIdentity
	ClientContext      ClientContext
}

LambdaContext is the set of metadata that is passed for every Invoke.

func FromContext

func FromContext(ctx context.Context) (*LambdaContext, bool)

FromContext returns the LambdaContext value stored in ctx, if any.

Jump to

Keyboard shortcuts

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