Documentation
¶
Index ¶
- Variables
- func IsError(err error) bool
- func IsErrorCode(err error, code Code) bool
- func IsTooManyClientError(err error) bool
- func NewCachedStateStorage(underlying Store) *cachedStateStorage
- func NoOpDriver() *noOpDriver
- func NoOpStore() *noOpStore
- type CachedStorageDriver
- type Code
- type Driver
- type Error
- type Store
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAborted = errors.New("aborted transactions")
Functions ¶
func IsErrorCode ¶ added in v1.0.4
func IsTooManyClientError ¶ added in v1.0.4
func NewCachedStateStorage ¶
func NewCachedStateStorage(underlying Store) *cachedStateStorage
func NoOpDriver ¶ added in v1.3.2
func NoOpDriver() *noOpDriver
Types ¶
type CachedStorageDriver ¶ added in v1.3.2
type CachedStorageDriver struct {
Driver
}
func NewCachedStorageDriver ¶ added in v1.3.2
func NewCachedStorageDriver(underlying Driver) *CachedStorageDriver
type Store ¶
type Store interface {
LastTransaction(ctx context.Context) (*core.Transaction, error)
CountTransactions(context.Context) (int64, error)
FindTransactions(context.Context, query.Query) (sharedapi.Cursor, error)
GetTransaction(context.Context, uint64) (core.Transaction, error)
GetAccount(context.Context, string) (core.Account, error)
AggregateVolumes(context.Context, string) (core.Volumes, error)
CountAccounts(context.Context) (int64, error)
FindAccounts(context.Context, query.Query) (sharedapi.Cursor, error)
AppendLog(ctx context.Context, log ...core.Log) (map[int]error, error)
LastLog(ctx context.Context) (*core.Log, error)
Logs(ctx context.Context) ([]core.Log, error)
LoadMapping(ctx context.Context) (*core.Mapping, error)
SaveMapping(ctx context.Context, m core.Mapping) error
Initialize(context.Context) (bool, error)
Name() string
Close(context.Context) error
}
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.