apigwp

package
v0.0.0-...-5995fdc Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Response returns an API Gateway Proxy Response with a nil error to provide detailed status codes and response bodies. While a status code must be provided, further arguments are recognized with reflection but not required.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogRequest

func LogRequest(r events.APIGatewayProxyRequest)

func NotOk

func NotOk(code int, err error) (events.APIGatewayProxyResponse, error)

func Ok

func Ok(body interface{}) (events.APIGatewayProxyResponse, error)

func OkInterface

func OkInterface(token string, body interface{}) (events.APIGatewayProxyResponse, error)

func OkVoid

func OkVoid(token string) (events.APIGatewayProxyResponse, error)

func Unauthorized

func Unauthorized(err error) (events.APIGatewayProxyResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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