apiutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorBody

type ErrorBody struct {
	Message string `json:"message"`
}

ErrorBody represents an error used in response body

type Response

Response is returned from lambda proxy integration

func NewErrorResponse

func NewErrorResponse(code int, message string) Response

NewErrorResponse returns an error response

func NewSuccessJSONResponse

func NewSuccessJSONResponse(body string) Response

NewSuccessJSONResponse returns a successful response

Jump to

Keyboard shortcuts

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