Documentation ¶
Index ¶
- Variables
- type API
- func (a *API) Get(table, attr string, last *types.Record) *types.MultiQuoteRes
- func (a *API) Put(opts ...PutOpt) error
- func (a *API) PutWithAuthor(author *types.Record) PutOpt
- func (a *API) PutWithQuote(quote *types.Quote) PutOpt
- func (a *API) PutWithTopics(topics []*types.Record) PutOpt
- func (a *API) Random() *types.QuoteRes
- type Opts
- type PutInput
- type PutOpt
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DBRoleARN specifies the IAM Role to assume DBRoleARN = "" // AWSConsumedCapacityIndex specifies DynamoDB return aggregate RCU usage AWSConsumedCapacityIndex = dynamodb.ReturnConsumedCapacityIndexes // AWSItemCollection specifies the metric types returned AWSItemCollection = dynamodb.ReturnItemCollectionMetricsSize )
Functions ¶
This section is empty.
Types ¶
type API ¶
API manages client connections with outside services
func WithSession ¶
WithSession inserts a given session into API
func (*API) PutWithAuthor ¶
PutWithAuthor add author to transaction
func (*API) PutWithQuote ¶
PutWithQuote adds quote to transaction
func (*API) PutWithTopics ¶
PutWithTopics adds topics to the transaction
type Opts ¶
Opts is the type signature for optional functions modifying API
func WithDynamoDBService ¶
WithDynamoDBService initializes the aws dynamodb agent
func WithPaginationLimit ¶
WithPaginationLimit inserts the given pagination limit into DB
func WithTables ¶
WithTables inserts the name of the tables into DB
Click to show internal directories.
Click to hide internal directories.