Documentation ¶
Index ¶
- type Client
- type Config
- type CreateTableOp
- type DeleteItemOp
- func (d *DeleteItemOp) Bind(in interface{}) *DeleteItemOp
- func (d *DeleteItemOp) Execute() error
- func (d *DeleteItemOp) ExecuteWithCtx(ctx context.Context) error
- func (d *DeleteItemOp) Request() (*request.Request, *dynamodb.DeleteItemOutput)
- func (d *DeleteItemOp) UseExpr(expr expression.Expression) *DeleteItemOp
- type GetItemOp
- func (g *GetItemOp) Bind(in interface{}) *GetItemOp
- func (g *GetItemOp) Execute(out interface{}) error
- func (g *GetItemOp) ExecuteWithCtx(ctx context.Context, out interface{}) error
- func (g *GetItemOp) Request() (*request.Request, *dynamodb.GetItemOutput)
- func (g *GetItemOp) UseExpr(expr expression.Expression) *GetItemOp
- type Item
- type PutItemOp
- type Table
- type UpdateItemOp
- func (u *UpdateItemOp) Bind(in interface{}) *UpdateItemOp
- func (u *UpdateItemOp) Execute() error
- func (u *UpdateItemOp) ExecuteWithCtx(ctx context.Context) error
- func (u *UpdateItemOp) Request() (*request.Request, *dynamodb.UpdateItemOutput)
- func (u *UpdateItemOp) UseExpr(expr expression.Expression) *UpdateItemOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client struct that holds the connection objects
func NewClientWithSession ¶
NewClientWithSession function to create a client with the provided aws sessio object
func (*Client) CreateTable ¶
CreateTable function to create a new table in Dynamo. Throws error if it already exists
type Config ¶
type Config struct { Timeout time.Duration TagName string PartitionKeyTag string SortKeyTag string }
Config struct to provide initial configuration for the connection
type CreateTableOp ¶
type CreateTableOp struct { Input *dynamodb.CreateTableInput // contains filtered or unexported fields }
type DeleteItemOp ¶
type DeleteItemOp struct { Input *dynamodb.DeleteItemInput // contains filtered or unexported fields }
func (*DeleteItemOp) Bind ¶
func (d *DeleteItemOp) Bind(in interface{}) *DeleteItemOp
func (*DeleteItemOp) Execute ¶
func (d *DeleteItemOp) Execute() error
func (*DeleteItemOp) ExecuteWithCtx ¶
func (d *DeleteItemOp) ExecuteWithCtx(ctx context.Context) error
func (*DeleteItemOp) Request ¶
func (d *DeleteItemOp) Request() (*request.Request, *dynamodb.DeleteItemOutput)
func (*DeleteItemOp) UseExpr ¶
func (d *DeleteItemOp) UseExpr(expr expression.Expression) *DeleteItemOp
type GetItemOp ¶
type GetItemOp struct { Input *dynamodb.GetItemInput // contains filtered or unexported fields }
GetItemOp struct that represents the GetItem operation
func (*GetItemOp) Execute ¶
Execute function to execute the GetItem operation with the default context
func (*GetItemOp) ExecuteWithCtx ¶
ExecuteWithCtx function to execute the GetItem operation with the given context
func (*GetItemOp) Request ¶
func (g *GetItemOp) Request() (*request.Request, *dynamodb.GetItemOutput)
func (*GetItemOp) UseExpr ¶
func (g *GetItemOp) UseExpr(expr expression.Expression) *GetItemOp
type PutItemOp ¶
type PutItemOp struct { Input *dynamodb.PutItemInput // contains filtered or unexported fields }
PutItemOp struct that represents a PutItem operation
func (*PutItemOp) ExecuteWithCtx ¶
ExecuteWithCtx function to execute the PutItem operation with the given context
func (*PutItemOp) Request ¶
func (p *PutItemOp) Request() (*request.Request, *dynamodb.PutItemOutput)
func (*PutItemOp) UseExpr ¶
func (p *PutItemOp) UseExpr(expr expression.Expression) *PutItemOp
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table interface for interactive with dynamo
func (*Table) DeleteItem ¶
func (t *Table) DeleteItem() *DeleteItemOp
func (*Table) UpdateItem ¶
func (t *Table) UpdateItem() *UpdateItemOp
type UpdateItemOp ¶
type UpdateItemOp struct { Input *dynamodb.UpdateItemInput // contains filtered or unexported fields }
func (*UpdateItemOp) Bind ¶
func (u *UpdateItemOp) Bind(in interface{}) *UpdateItemOp
func (*UpdateItemOp) Execute ¶
func (u *UpdateItemOp) Execute() error
func (*UpdateItemOp) ExecuteWithCtx ¶
func (u *UpdateItemOp) ExecuteWithCtx(ctx context.Context) error
func (*UpdateItemOp) Request ¶
func (u *UpdateItemOp) Request() (*request.Request, *dynamodb.UpdateItemOutput)
func (*UpdateItemOp) UseExpr ¶
func (u *UpdateItemOp) UseExpr(expr expression.Expression) *UpdateItemOp