Documentation ¶
Index ¶
- func InitDynamoDB(tableName string) (pkvs *kvstore_dynamodb, err interface{})
- func InitEtcd(endpoints []string, keyprefix string) (pkvs *kvstore_etcd, err interface{})
- func InitFilesystem(path string, createPath bool, pathMode os.FileMode, fileMode os.FileMode) (pkvs *kvstore_filesystem, err interface{})
- func InitPostgres(connStr, tblName string, createTable bool) (pkvs *kvstore_postgres, err interface{})
- func InitS3(bucketName, keyPrefix string) (pkvs *kvstore_s3, err interface{})
- type KVStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDynamoDB ¶
func InitDynamoDB(tableName string) (pkvs *kvstore_dynamodb, err interface{})
uses default aws credential loading i.e. AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_SESSION_TOKEN AWS_REGION the table must already exist with primary key "key"
func InitFilesystem ¶
func InitPostgres ¶
func InitPostgres(connStr, tblName string, createTable bool) (pkvs *kvstore_postgres, err interface{})
connStr example: postgres://username:password@localhost:5432/database_name
Types ¶
Click to show internal directories.
Click to hide internal directories.