dynamodb_client

package
v0.0.0-...-b203053 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamoDBClient

type DynamoDBClient struct {
	TableName string
	Client    *dynamodb.Client
	UseBatch  bool
}

DynamoDBResultWriter struct

Contains the destination and dynamodb client for interacting with DynamoDB

func NewDynamoDBClient

func NewDynamoDBClient(tableName string, useBatch bool) *DynamoDBClient

Attempts to create DynamoDB writer by loading the default AWS config and creating a new dynamodb client from the config. Also provides the table name of the table items should be written to

func (*DynamoDBClient) UpdateDestination

func (writer *DynamoDBClient) UpdateDestination(destination string)

func (*DynamoDBClient) WriteRepoResults

func (ddbc *DynamoDBClient) WriteRepoResults(results api_results.GHRepoWriteResults) error

func (*DynamoDBClient) WriteTokenResults

func (ddbc *DynamoDBClient) WriteTokenResults(results models.TokenResults) error

Batch write the Token Results to the table name provided in the DynamoDBResultsWriter

Jump to

Keyboard shortcuts

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