Documentation
¶
Index ¶
- Variables
- func DefaultModule() fx.Option
- func NewCachedStateStorage(underlying Store) *cachedStateStorage
- func NewRememberConfigStorage(underlying Store, logger logging.Logger) *rememberConfigStorage
- func NoOpStore() *noOpStore
- type BuiltInFactory
- type CachedStorageFactory
- type Code
- type Driver
- type Error
- type Factory
- type RememberConfigStorageFactory
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAborted = errors.New("aborted transactions")
Functions ¶
func DefaultModule ¶
func NewCachedStateStorage ¶
func NewCachedStateStorage(underlying Store) *cachedStateStorage
Types ¶
type BuiltInFactory ¶
type BuiltInFactory struct {
Driver Driver
}
type CachedStorageFactory ¶
type CachedStorageFactory struct {
// contains filtered or unexported fields
}
func NewCachedStorageFactory ¶
func NewCachedStorageFactory(underlying Factory) *CachedStorageFactory
type RememberConfigStorageFactory ¶
type RememberConfigStorageFactory struct {
Factory
// contains filtered or unexported fields
}
func NewRememberConfigStorageFactory ¶
func NewRememberConfigStorageFactory(underlying Factory) *RememberConfigStorageFactory
type Store ¶
type Store interface {
LastTransaction(context.Context) (*core.Transaction, error)
LastMetaID(context.Context) (int64, error)
SaveTransactions(context.Context, []core.Transaction) (map[int]error, error)
CountTransactions(context.Context) (int64, error)
FindTransactions(context.Context, query.Query) (query.Cursor, error)
GetTransaction(context.Context, string) (core.Transaction, error)
AggregateBalances(context.Context, string) (map[string]int64, error)
AggregateVolumes(context.Context, string) (map[string]map[string]int64, error)
CountAccounts(context.Context) (int64, error)
FindAccounts(context.Context, query.Query) (query.Cursor, error)
SaveMeta(context.Context, int64, string, string, string, string, string) error
GetMeta(context.Context, string, string) (core.Metadata, error)
CountMeta(context.Context) (int64, error)
LoadMapping(ctx context.Context) (*core.Mapping, error)
SaveMapping(ctx context.Context, m core.Mapping) error
Initialize(context.Context) error
Name() string
Close(context.Context) error
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
File is part of the build only if cgo is enabled.
|
File is part of the build only if cgo is enabled. |
Click to show internal directories.
Click to hide internal directories.