client

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Overview

package client provides the function to make a RPC request to a lambda function and read the response.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Invoke

func Invoke(addr string, data []byte, executionLimit time.Duration) ([]byte, error)

Invoke makes the request to the local lambda function running on the address specified in addr. data is the payload used in the request, eg. a JSON to be passed to the lambda function as body. If the lambda returned an error then this function will return the error message in the error interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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