client

package
v0.0.0-...-0821f6f Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultCodec

func DefaultCodec(funcName string) (rpc.ClientCodec, error)

DefaultCodec calls NewCodec with a default Lambda client in the "us-east-1" region or AWS_REGION if set.

func NewCodec

func NewCodec(svc *lambda.Lambda, funcName string) (rpc.ClientCodec, error)

NewCodec returns an rpc.ClientCodec for Lambda client svc with funcName. The funcName argument may include an alias or version qualifier (for example "Function:1" specifies version 1 of Function).

func SetLogger

func SetLogger(codec rpc.ClientCodec, logger func(string, ...interface{})) error

SetLogger enables logging of CloudWatch invocation log tails with logger. If logger is nil, disables logging.

Types

type FunctionError

type FunctionError struct {
	ErrorMessage string
	ErrorType    string
}

Jump to

Keyboard shortcuts

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