Documentation ¶
Index ¶
- Constants
- Variables
- type Tracker
- func (t *Tracker) Create(ctx context.Context, alias, fil string) error
- func (t *Tracker) Delete(ctx context.Context, alias string) error
- func (t *Tracker) Get(ctx context.Context, alias string) (*TxFeed, error)
- func (t *Tracker) GetTxfeedCh() chan *types.Tx
- func (t *Tracker) Prepare(ctx context.Context) error
- func (t *Tracker) TxFilter(tx *types.Tx) error
- type TxFeed
Constants ¶
View Source
const (
//FilterNumMax max txfeed filter amount.
FilterNumMax = 1024
)
Variables ¶
View Source
var ( //ErrDuplicateAlias means error of duplicate feed alias. ErrDuplicateAlias = errors.New("duplicate feed alias") //ErrEmptyAlias means error of empty feed alias. ErrEmptyAlias = errors.New("empty feed alias") //ErrNumExceedlimit means txfeed filter number exceeds the limit. ErrNumExceedlimit = errors.New("txfeed exceed limit") )
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
Tracker filter tracker object.
func NewTracker ¶ added in v0.2.0
NewTracker create new txfeed tracker.
func (*Tracker) GetTxfeedCh ¶ added in v0.2.0
GetTxfeedCh return a txfeed channel.
Click to show internal directories.
Click to hide internal directories.