Documentation
¶
Overview ¶
Package store implements a simple interface and registry for transaction stores.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTransactionNotFound transaction not found ErrTransactionNotFound = fmt.Errorf("transaction not found") )
Functions ¶
Types ¶
type Store ¶
type Store interface {
// Close the store
Close() (err error)
// Has checks if a transaction config exists under the given name
Has(name string) (exists bool, err error)
// Get a transaction config from the store
Get(name string) (config transaction.Config, err error)
// Set stores the given transaction config
Set(name string, config transaction.Config) (err error)
// Delete the transaction config for the given name
Delete(name string) (err error)
// Iter iterates the transaction configs applying the callback for the name and config pairs.
// Returning false causes the iteration to stop.
Iter(callback func(name string, config transaction.Config) (proceed bool)) (err error)
}
Store for transaction configurations
Directories
¶
| Path | Synopsis |
|---|---|
|
Package leveldb implements a simple leveldb transaction store.
|
Package leveldb implements a simple leveldb transaction store. |
|
Package memory implements a simple in-memory transaction store.
|
Package memory implements a simple in-memory transaction store. |
|
Package s3 provides implementation of the storage layer under AWS S3 service.
|
Package s3 provides implementation of the storage layer under AWS S3 service. |
|
Package tests implements a test suite for store drivers.
|
Package tests implements a test suite for store drivers. |
Click to show internal directories.
Click to hide internal directories.