aws

package module
v0.0.0-...-1ea783d Latest Latest
Warning

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

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

README

ToDo API - AWS Implementation

This is the AWS implementation of the ToDo API Use-Case.

To build/deploy this implementation please ensure the following tools are installed and configured:

  • Serverless Framework CLI
  • Go SDK - Version 1.11 or newer
  • GNU Make

Building

To build the functions just run:

make build

Deployment

To deploy them just run:

make deploy

This will also build the functions. Making the execution of make build beforehand unnecessary.

The endpoints are displayed once the deployment is done.

Destroying / Removing

To destroy/remove the Deployment run:

make destroy

Documentation

Index

Constants

View Source
const TableNameEnvName = "DYNAMODB_TABLE"

Variables

Functions

func NewDynamoRepo

func NewDynamoRepo() core.Repository

Types

type DynamoRepo

type DynamoRepo struct {
	TableName string
	// contains filtered or unexported fields
}

func (*DynamoRepo) Delete

func (r *DynamoRepo) Delete(k string) error

func (*DynamoRepo) Get

func (r *DynamoRepo) Get(k string) (*core.ToDoItem, error)

func (*DynamoRepo) Init

func (r *DynamoRepo) Init() error

func (*DynamoRepo) List

func (r *DynamoRepo) List() ([]core.ToDoItem, error)

func (*DynamoRepo) Put

func (r *DynamoRepo) Put(i *core.ToDoItem) (*core.ToDoItem, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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