dynamodb

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2018 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDynamoDB

func NewDynamoDB() (db.DB, error)

NewDynamoDB creates and initializes a new DynamoDB connection

Types

type DynamoDB

type DynamoDB struct {
	// contains filtered or unexported fields
}

DynamoDB encapsulates all DynamoDB-related database functions

func (*DynamoDB) GetURL

func (db *DynamoDB) GetURL(key []byte) ([]byte, error)

func (*DynamoDB) SaveURL

func (db *DynamoDB) SaveURL(url string, keybuffer <-chan []byte) (string, error)

type ShortenedURL

type ShortenedURL struct {
	Key string `json:"key"`
	Url string `json:"url"`
}

Jump to

Keyboard shortcuts

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