Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfirmationFilters = &ffapi.QueryFields{ "sequence": &ffapi.Int64Field{}, "id": &ffapi.UUIDField{}, "transaction": &ffapi.StringField{}, "blocknumber": &ffapi.Int64Field{}, "blockhash": &ffapi.StringField{}, "parenthash": &ffapi.StringField{}, }
View Source
var EventStreamFilters = &ffapi.QueryFields{ "sequence": &ffapi.Int64Field{}, "id": &ffapi.UUIDField{}, "name": &ffapi.StringField{}, "created": &ffapi.TimeField{}, "updated": &ffapi.TimeField{}, "suspended": &ffapi.BoolField{}, "type": &ffapi.StringField{}, "errorhandling": &ffapi.StringField{}, "batchsize": &ffapi.Int64Field{}, "batchtimeout": &ffapi.Int64Field{}, "retrytimeout": &ffapi.Int64Field{}, "blockedretrytimeout": &ffapi.Int64Field{}, "webhook": &ffapi.JSONField{}, "websocket": &ffapi.JSONField{}, }
View Source
var ListenerFilters = &ffapi.QueryFields{ "sequence": &ffapi.Int64Field{}, "id": &ffapi.UUIDField{}, "name": &ffapi.StringField{}, "created": &ffapi.TimeField{}, "updated": &ffapi.TimeField{}, "streamid": &ffapi.UUIDField{}, "filters": &ffapi.JSONField{}, "options": &ffapi.JSONField{}, "signature": &ffapi.StringField{}, "fromblock": &ffapi.StringField{}, }
View Source
var ReceiptFilters = &ffapi.QueryFields{ "sequence": &ffapi.Int64Field{}, "transaction": &ffapi.StringField{}, "created": &ffapi.TimeField{}, "updated": &ffapi.TimeField{}, "blocknumber": &ffapi.Int64Field{}, "transactionindex": &ffapi.BigIntField{}, "blockhash": &ffapi.StringField{}, "success": &ffapi.BoolField{}, "protocolid": &ffapi.StringField{}, "extrainfo": &ffapi.JSONField{}, "contractlocation": &ffapi.JSONField{}, }
View Source
var TXHistoryFilters = &ffapi.QueryFields{ "sequence": &ffapi.Int64Field{}, "id": &ffapi.UUIDField{}, "transaction": &ffapi.StringField{}, "time": &ffapi.TimeField{}, "lastoccurrence": &ffapi.TimeField{}, "substatus": &ffapi.StringField{}, "action": &ffapi.StringField{}, "occurrences": &ffapi.Int64Field{}, "lasterror": &ffapi.JSONField{}, "lasterrortime": &ffapi.TimeField{}, "lastinfo": &ffapi.JSONField{}, }
View Source
var TransactionFilters = &ffapi.QueryFields{ "sequence": &ffapi.Int64Field{}, "id": &ffapi.StringField{}, "created": &ffapi.TimeField{}, "updated": &ffapi.TimeField{}, "status": &ffapi.StringField{}, "deleterequested": &ffapi.TimeField{}, "from": &ffapi.StringField{}, "to": &ffapi.StringField{}, "nonce": &ffapi.BigIntField{}, "gas": &ffapi.BigIntField{}, "value": &ffapi.BigIntField{}, "gasprice": &ffapi.JSONField{}, "transactiondata": &ffapi.StringField{}, "transactionhash": &ffapi.StringField{}, "policyinfo": &ffapi.JSONField{}, "firstsubmit": &ffapi.TimeField{}, "lastsubmit": &ffapi.TimeField{}, "errormessage": &ffapi.StringField{}, }
Functions ¶
Types ¶
type CheckpointPersistence ¶ added in v1.3.0
type EventStreamPersistence ¶ added in v1.2.4
type EventStreamPersistence interface { ListStreamsByCreateTime(ctx context.Context, after *fftypes.UUID, limit int, dir txhandler.SortDirection) ([]*apitypes.EventStream, error) // reverse insertion order GetStream(ctx context.Context, streamID *fftypes.UUID) (*apitypes.EventStream, error) WriteStream(ctx context.Context, spec *apitypes.EventStream) error DeleteStream(ctx context.Context, streamID *fftypes.UUID) error }
type ListenerPersistence ¶ added in v1.2.4
type ListenerPersistence interface { ListListenersByCreateTime(ctx context.Context, after *fftypes.UUID, limit int, dir txhandler.SortDirection) ([]*apitypes.Listener, error) // reverse insertion ListStreamListenersByCreateTime(ctx context.Context, after *fftypes.UUID, limit int, dir txhandler.SortDirection, streamID *fftypes.UUID) ([]*apitypes.Listener, error) GetListener(ctx context.Context, listenerID *fftypes.UUID) (*apitypes.Listener, error) WriteListener(ctx context.Context, spec *apitypes.Listener) error DeleteListener(ctx context.Context, listenerID *fftypes.UUID) error }
type Persistence ¶
type Persistence interface { EventStreamPersistence CheckpointPersistence ListenerPersistence TransactionPersistence TransactionHistoryPersistence RichQuery() RichQuery // panics if not supported Close(ctx context.Context) // close function is controlled by the manager }
Persistence interface contains all the functions a persistence instance needs to implement. Sub set of functions are grouped into sub interfaces to provide a clear view of what persistent functions will be made available for each sub components to use after the persistent instance is initialized by the manager.
type TransactionHistoryPersistence ¶ added in v1.3.0
type TransactionHistoryPersistence interface { txhandler.TransactionHistoryPersistence }
type TransactionPersistence ¶ added in v1.2.4
type TransactionPersistence interface { txhandler.TransactionPersistence }
Click to show internal directories.
Click to hide internal directories.