Documentation ¶
Index ¶
- type Client
- type ClientImpl
- func (db ClientImpl) DeleteItem(ctx context.Context, keyName string, value string) (*dynamodb.DeleteItemOutput, error)
- func (db ClientImpl) GetItem(ctx context.Context, valueName string, value string) (*map[string]*dynamodb.AttributeValue, error)
- func (db ClientImpl) UpsertItem(ctx context.Context, in interface{}) (*dynamodb.PutItemOutput, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetItem(ctx context.Context, valueName string, value string) (*map[string]*dynamodb.AttributeValue, error) UpsertItem(ctx context.Context, in interface{}) (*dynamodb.PutItemOutput, error) DeleteItem(ctx context.Context, keyName string, value string) (*dynamodb.DeleteItemOutput, error) }
type ClientImpl ¶
type ClientImpl struct { Conn dynamodbiface.DynamoDBAPI TableName string Logger *zerolog.Logger }
func (ClientImpl) DeleteItem ¶
func (db ClientImpl) DeleteItem(ctx context.Context, keyName string, value string) (*dynamodb.DeleteItemOutput, error)
func (ClientImpl) GetItem ¶
func (db ClientImpl) GetItem(ctx context.Context, valueName string, value string) (*map[string]*dynamodb.AttributeValue, error)
func (ClientImpl) UpsertItem ¶
func (db ClientImpl) UpsertItem(ctx context.Context, in interface{}) (*dynamodb.PutItemOutput, error)
Click to show internal directories.
Click to hide internal directories.