Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type DynamoDB ¶
type DynamoDB struct {
// The name of the DynamoDB table to be used as KV
TableName string
// Maximal number of items per page during scan operation
ScanLimit int64
// Specifies the maximum number attempts to make on a request.
MaxAttempts int
// The endpoint URL of the DynamoDB endpoint
// Can be used to redirect to DynamoDB on AWS, local docker etc.
Endpoint string
// AWS connection details - region, profile and credentials
// This will override any such details that are already exist in the system
// While in general, AWS region and credentials are configured in the system for AWS usage,
// these can be used to specify fake values, that cna be used to connect to local DynamoDB,
// in case there are no credentials configured in the system
// This is a client requirement as described in section 4 in
// https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html
AwsRegion string
AwsProfile string
AwsAccessKeyID string
AwsSecretAccessKey string
HealthCheckInterval time.Duration
MaxConnectionsPerHost int
CredentialsCacheExpiryWindow time.Duration
CredentialsCacheExpiryWindowJitterFraction float64
}
type Local ¶
type Local struct {
// Path - Local directory path to store the DB files. If set to memory: then in-memory DB will be used
Path string
// SyncWrites - Sync ensures data written to disk on each writing instead of mem cache
SyncWrites bool
// PrefetchSize - Number of elements to prefetch while iterating
PrefetchSize int
// EnableLogging - Enable store and badger (trace only) logging
EnableLogging bool
}
type Redis ¶ added in v1.66.0
type Redis struct {
Endpoint string // Endpoint is the single address (host:port) or ';' separated addresses for cluster
Username string
Password string
Database int // Database number to select
PoolSize int // Connection pool size
DialTimeout time.Duration
ReadTimeout time.Duration
WriteTimeout time.Duration
Namespace string // Namespace is a prefix for all keys
EnableTLS bool
ClusterMode bool
TLSSkipVerify bool // Skip cert verification (dev only)
BatchSize int
}
Click to show internal directories.
Click to hide internal directories.