Documentation ¶
Index ¶
- Constants
- Variables
- func IsExistingTable(err error) (bool, error)
- type BatchWriter
- func (b *BatchWriter) Contents() interface{}
- func (b *BatchWriter) DeleteStruct(in interface{}) (err error)
- func (b *BatchWriter) InsertStruct(in interface{}) (err error)
- func (b *BatchWriter) Len() int
- func (b *BatchWriter) Put(ctx context.Context, in interface{}) (err error)
- func (b *BatchWriter) UpdateStruct(in interface{}) (err error)
- type DynamoDB
- func (d *DynamoDB) Commit(ctx context.Context, writer *BatchWriter) (out interface{}, err error)
- func (d *DynamoDB) CreateTable(ctx context.Context, arg *dynamodb.CreateTableInput) (out interface{}, err error)
- func (d *DynamoDB) CreateTableFromStruct(ctx context.Context, in interface{}) (out interface{}, err error)
- func (d *DynamoDB) DescribeTable(ctx context.Context, arg *dynamodb.DescribeTableInput) (out interface{}, err error)
- func (d *DynamoDB) DescribeTableFromStruct(ctx context.Context, in interface{}) (out interface{}, err error)
- func (d *DynamoDB) DropTable(ctx context.Context, arg *dynamodb.DeleteTableInput) (out interface{}, err error)
- func (d *DynamoDB) DropTableFromStruct(ctx context.Context, in interface{}) (out interface{}, err error)
- func (d *DynamoDB) Get(ctx context.Context, arg *dynamodb.GetItemInput) (out interface{}, err error)
- func (d *DynamoDB) GetStruct(ctx context.Context, in interface{}, result interface{}) (err error)
- func (d *DynamoDB) List(ctx context.Context, arg *dynamodb.ScanInput) (out interface{}, err error)
- func (d *DynamoDB) ListStruct(ctx context.Context, in interface{}, result interface{}) (err error)
- func (d *DynamoDB) WaitForTableCreation(ctx context.Context, in interface{}) error
- func (d *DynamoDB) WaitForTableDeletion(ctx context.Context, in interface{}) error
- func (d *DynamoDB) Writer(ctx context.Context) (out BatchWriter, err error)
- type Handler
- type Logger
- type Middleware
- type Option
- type Timeout
Constants ¶
View Source
const (
KEY_TAG = "key"
)
Variables ¶
View Source
var ( ErrUnsupported = errors.New("unsupported") ErrUnexpectedInput = errors.New("unexpected input") ErrNothingToCommit = errors.New("nothing to commit") ErrKeyTagNotFound = errors.New("key tag not found") )
View Source
var (
DefaultTimeout = 10 * time.Second
)
Functions ¶
func IsExistingTable ¶
Types ¶
type BatchWriter ¶
func (*BatchWriter) Contents ¶
func (b *BatchWriter) Contents() interface{}
func (*BatchWriter) DeleteStruct ¶
func (b *BatchWriter) DeleteStruct(in interface{}) (err error)
func (*BatchWriter) InsertStruct ¶
func (b *BatchWriter) InsertStruct(in interface{}) (err error)
func (*BatchWriter) Len ¶
func (b *BatchWriter) Len() int
func (*BatchWriter) Put ¶
func (b *BatchWriter) Put(ctx context.Context, in interface{}) (err error)
func (*BatchWriter) UpdateStruct ¶
func (b *BatchWriter) UpdateStruct(in interface{}) (err error)
type DynamoDB ¶
type DynamoDB struct {
// contains filtered or unexported fields
}
func NewDynamoDB ¶
func (*DynamoDB) Commit ¶
func (d *DynamoDB) Commit(ctx context.Context, writer *BatchWriter) (out interface{}, err error)
func (*DynamoDB) CreateTable ¶
func (*DynamoDB) CreateTableFromStruct ¶
func (*DynamoDB) DescribeTable ¶
func (*DynamoDB) DescribeTableFromStruct ¶
func (*DynamoDB) DropTableFromStruct ¶
func (*DynamoDB) ListStruct ¶ added in v0.0.2
func (*DynamoDB) WaitForTableCreation ¶
func (*DynamoDB) WaitForTableDeletion ¶
type Logger ¶
func WithLogger ¶
type Middleware ¶
Click to show internal directories.
Click to hide internal directories.