aws-lambda-go: github.com/aws/aws-lambda-go/lambdacontext Index | Files

package lambdacontext

import "github.com/aws/aws-lambda-go/lambdacontext"

Index

Package Files

context.go

Variables

var FunctionName string

FunctionName the name of the current Lambda Function

var FunctionVersion string

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

var LogGroupName string

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

var LogStreamName string

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

var MemoryLimitInMB int

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

func NewContext Uses

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

NewContext returns a new Context that carries value lc.

type ClientApplication Uses

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 Uses

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 Uses

type CognitoIdentity struct {
    CognitoIdentityID     string
    CognitoIdentityPoolID string
}

CognitoIdentity is the cognito identity used by the calling application.

type LambdaContext Uses

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 Uses

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

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

Package lambdacontext imports 3 packages (graph) and is imported by 12 packages. Updated 2018-04-16. Refresh now. Tools for package owners.