Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Type Type Tx *transaction.Transaction Data interface{} }
Event represents one of mempool events: transaction was added or removed from mempool.
type Type ¶
type Type byte
Type represents mempool event type.
func GetEventTypeFromString ¶
GetEventTypeFromString converts input string into an Type if it's possible.
func (Type) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface.
func (*Type) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.