restore

package
v0.0.0-...-163c585 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2016 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToDyanmo

func ToDyanmo(c *DynamoResotreConfig) error

ToDyanmo restores the data from the file in the s3 bucket to the specified dynamo table

Types

type DynamoResotreConfig

type DynamoResotreConfig struct {
	Region      string
	TableName   string
	Workers     int
	Bucket      string
	RestoreFile string
}

DynamoResotreConfig provides the configuration for archiving dynamo table to s3

type DynamoWriter

type DynamoWriter interface {
	Write(input chan map[string]interface{}) error
}

DynamoWriter provides the interface to write data to dynamo

func NewDynamoBatchWriter

func NewDynamoBatchWriter(db dynamodbiface.DynamoDBAPI, table string) DynamoWriter

NewDynamoBatchWriter creates new dynamo writer which sends the data to dynamo in batches of 25 requests

Jump to

Keyboard shortcuts

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