awshelper

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

Go Report Card GoDoc


aws-helper-go

...

...

Getting started

To get the package, execute:

go get gopkg.in/dasrick/aws-helper-go.v1

To import this package, add the following line to your code:

import "gopkg.in/dasrick/aws-helper-go.v1"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIGatewayProxyResponse200

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

GetAPIGatewayProxyResponse200 ... send sucess with body (stringyfied JSON)

func GetAPIGatewayProxyResponse204

func GetAPIGatewayProxyResponse204() (events.APIGatewayProxyResponse, error)

GetAPIGatewayProxyResponse204 ... send sucess without body

func GetAPIGatewayProxyResponse400

func GetAPIGatewayProxyResponse400(error interface{}) (events.APIGatewayProxyResponse, error)

GetAPIGatewayProxyResponse400 ... send Bad Request and log error

func GetAPIGatewayProxyResponse404 added in v1.1.0

func GetAPIGatewayProxyResponse404(error interface{}) (events.APIGatewayProxyResponse, error)

GetAPIGatewayProxyResponse404 ... send Not Found and log error

func GetAPIGatewayProxyResponse500

func GetAPIGatewayProxyResponse500(error interface{}) (events.APIGatewayProxyResponse, error)

GetAPIGatewayProxyResponse500 ... send Internal Server Error and log error

Types

type APIGatewayProxyResponseError

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

APIGatewayProxyResponseError ... basic structure of error

type Store

type Store interface {
	//GetAll(k string) (list []interface{}, err error)
	Get(k string, v interface{}) (found bool, err error)
	Store(k string, v interface{}) error
	Delete(k string) error
	Close() error
}

Store ... this is the basic interface for all kvSTORES

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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