dynamo

package
v1.2.3-fred.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.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 APIMetrics

type APIMetrics struct {
	dynamodbiface.DynamoDBAPI
	// contains filtered or unexported fields
}

APIMetrics wraps a dynamodbiface.DynamoDBAPI implementation and reports statistics about the dynamo api operations

func NewAPIMetrics

func NewAPIMetrics(tableType TableType, api dynamodbiface.DynamoDBAPI) (*APIMetrics, error)

NewAPIMetrics returns a new APIMetrics for the provided TableType

func (*APIMetrics) BatchWriteItemWithContext

func (m *APIMetrics) BatchWriteItemWithContext(ctx context.Context, input *dynamodb.BatchWriteItemInput, opts ...request.Option) (*dynamodb.BatchWriteItemOutput, error)

func (*APIMetrics) CreateTableWithContext

func (m *APIMetrics) CreateTableWithContext(ctx context.Context, input *dynamodb.CreateTableInput, opts ...request.Option) (*dynamodb.CreateTableOutput, error)

func (*APIMetrics) DeleteItemWithContext

func (m *APIMetrics) DeleteItemWithContext(ctx context.Context, input *dynamodb.DeleteItemInput, opts ...request.Option) (*dynamodb.DeleteItemOutput, error)

func (*APIMetrics) DeleteTableWithContext

func (m *APIMetrics) DeleteTableWithContext(ctx context.Context, input *dynamodb.DeleteTableInput, opts ...request.Option) (*dynamodb.DeleteTableOutput, error)

func (*APIMetrics) DescribeTableWithContext

func (m *APIMetrics) DescribeTableWithContext(ctx context.Context, input *dynamodb.DescribeTableInput, opts ...request.Option) (*dynamodb.DescribeTableOutput, error)

func (*APIMetrics) DescribeTimeToLiveWithContext

func (m *APIMetrics) DescribeTimeToLiveWithContext(ctx context.Context, input *dynamodb.DescribeTimeToLiveInput, opts ...request.Option) (*dynamodb.DescribeTimeToLiveOutput, error)

func (*APIMetrics) GetItemWithContext

func (m *APIMetrics) GetItemWithContext(ctx context.Context, input *dynamodb.GetItemInput, opts ...request.Option) (*dynamodb.GetItemOutput, error)

func (*APIMetrics) PutItemWithContext

func (m *APIMetrics) PutItemWithContext(ctx context.Context, input *dynamodb.PutItemInput, opts ...request.Option) (*dynamodb.PutItemOutput, error)

func (*APIMetrics) QueryWithContext

func (m *APIMetrics) QueryWithContext(ctx context.Context, input *dynamodb.QueryInput, opts ...request.Option) (*dynamodb.QueryOutput, error)

func (*APIMetrics) ScanWithContext

func (m *APIMetrics) ScanWithContext(ctx context.Context, input *dynamodb.ScanInput, opts ...request.Option) (*dynamodb.ScanOutput, error)

func (*APIMetrics) UpdateItemWithContext

func (m *APIMetrics) UpdateItemWithContext(ctx context.Context, input *dynamodb.UpdateItemInput, opts ...request.Option) (*dynamodb.UpdateItemOutput, error)

func (*APIMetrics) UpdateTimeToLiveWithContext

func (m *APIMetrics) UpdateTimeToLiveWithContext(ctx context.Context, input *dynamodb.UpdateTimeToLiveInput, opts ...request.Option) (*dynamodb.UpdateTimeToLiveOutput, error)

type StreamsMetricsAPI

type StreamsMetricsAPI struct {
	dynamodbstreamsiface.DynamoDBStreamsAPI
	// contains filtered or unexported fields
}

StreamsMetricsAPI wraps a dynamodbstreamsiface.DynamoDBStreamsAPI implementation and reports statistics about the dynamo api operations

func NewStreamsMetricsAPI

func NewStreamsMetricsAPI(tableType TableType, api dynamodbstreamsiface.DynamoDBStreamsAPI) (*StreamsMetricsAPI, error)

NewStreamsMetricsAPI returns a new StreamsMetricsAPI for the provided TableType

func (*StreamsMetricsAPI) DescribeStreamWithContext

func (*StreamsMetricsAPI) GetRecordsWithContext

func (*StreamsMetricsAPI) GetShardIteratorWithContext

type TableType

type TableType string

TableType indicates which type of table metrics are being calculated for

const (
	// Backend is a table used to store backend data.
	Backend TableType = "backend"
	// Events is a table used to store audit events.
	Events TableType = "events"
)

Jump to

Keyboard shortcuts

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