Versions in this module Expand all Collapse all v0 v0.0.1 Jun 11, 2020 Changes in this version + var ErrInvalidSubscriptionID = errors.New("invalid id") + type Backend interface + ChainDb func() fdb.Database + GetLogs func(ctx context.Context, blockHash common.Hash) ([][]*types.Log, error) + GetReceipts func(ctx context.Context, blockHash common.Hash) ([]*types.Receipt, error) + HeaderByHash func(ctx context.Context, blockHash common.Hash) *types.Header + HeaderByNumber func(ctx context.Context, blockNr rpc.BlockNumber) *types.Header + type EventSystem struct + func NewEventSystem(backend Backend) *EventSystem + func (es *EventSystem) SubscribeLogs(crit FilterQuery, logs chan []*types.Log) (*Subscription, error) + func (es *EventSystem) SubscribeNewHeads(headers chan *types.Header) *Subscription + func (es *EventSystem) SubscribePendingTxs(hashes chan []common.Hash) *Subscription + type Filter struct + type FilterCriteria FilterQuery + func (args *FilterCriteria) UnmarshalJSON(data []byte) error + type FilterQuery struct + Accounts []common.Name + Topics [][]common.Hash + type PublicFilterAPI struct + func NewPublicFilterAPI(backend Backend) *PublicFilterAPI + func (api *PublicFilterAPI) GetFilterChanges(id rpc.ID) (interface{}, error) + func (api *PublicFilterAPI) Logs(ctx context.Context, crit FilterCriteria) (*rpc.Subscription, error) + func (api *PublicFilterAPI) NewBlockFilter() rpc.ID + func (api *PublicFilterAPI) NewFilter(crit FilterCriteria) (rpc.ID, error) + func (api *PublicFilterAPI) NewHeads(ctx context.Context) (*rpc.Subscription, error) + func (api *PublicFilterAPI) NewPendingTransactionFilter() rpc.ID + func (api *PublicFilterAPI) NewPendingTransactions(ctx context.Context) (*rpc.Subscription, error) + func (api *PublicFilterAPI) UninstallFilter(id rpc.ID) bool + type Subscription struct + ID rpc.ID + func (sub *Subscription) Err() <-chan error + func (sub *Subscription) Unsubscribe() + type Type byte + const BlocksSubscription + const LastIndexSubscription + const LogsSubscription + const PendingTransactionsSubscription + const UnknownSubscription