lambda

package
v0.1484.0-MLPAB2599app... Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package lambda provides a client for AWS Lambda.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

A Client makes HTTP requests to AWS Lambda functions

func New

func New(cfg aws.Config, signer Signer, doer Doer, now func() time.Time) *Client

New creates a Client for calling AWS Lambda functions

func (*Client) Do

func (c *Client) Do(req *http.Request) (*http.Response, error)

Do executes the HTTP request

type Doer

type Doer interface {
	Do(*http.Request) (*http.Response, error)
}

type Signer

type Signer interface {
	SignHTTP(context.Context, aws.Credentials, *http.Request, string, string, string, time.Time, ...func(options *v4.SignerOptions)) error
}

Jump to

Keyboard shortcuts

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