Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrTransactionNotFound transaction not found ErrTransactionNotFound = fmt.Errorf("transaction not found") )
Functions ¶
Types ¶
type Store ¶ added in v0.1.0
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
Click to show internal directories.
Click to hide internal directories.