storage

package
v0.0.0-...-c2ccff6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message string
	Status  int
}

Error options

func (*Error) Error

func (e *Error) Error() string

type MockStorage

type MockStorage struct {
	mock.Mock
}

MockStorage mock

func (*MockStorage) Get

func (s *MockStorage) Get(key string) (string, *Error)

Get method

func (*MockStorage) Set

func (s *MockStorage) Set(key string, data string) *Error

Set method

type S3Storage

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

S3Storage stores the AWS S3 data

func (*S3Storage) Get

func (s *S3Storage) Get(key string) (string, *Error)

Get retrieves the specified S3 object

func (*S3Storage) Set

func (s *S3Storage) Set(key string, data string) *Error

Set puts the specified data into the relevant S3 object location

type Storage

type Storage interface {
	Get(key string) (string, *Error)
	Set(key string, data string) *Error
}

Storage interface

Jump to

Keyboard shortcuts

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