Documentation
¶
Overview ¶
Package session provides AWS session management and DynamoDB client configuration
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// AWS region
Region string
// Optional endpoint for local development (e.g., DynamoDB Local)
Endpoint string
// Maximum number of retries for failed requests
MaxRetries int
// Default read capacity units for table creation
DefaultRCU int64
// Default write capacity units for table creation
DefaultWCU int64
// Whether to automatically create tables if they don't exist
AutoMigrate bool
// Whether to enable metrics collection
EnableMetrics bool
// Custom AWS config options
AWSConfigOptions []func(*config.LoadOptions) error
// Custom DynamoDB client options
DynamoDBOptions []func(*dynamodb.Options)
// Credentials provider
CredentialsProvider aws.CredentialsProvider
}
Config holds the configuration for DynamORM
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session manages the AWS session and DynamoDB client
func NewSession ¶
NewSession creates a new session with the given configuration
Click to show internal directories.
Click to hide internal directories.