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 any }
Event represents one of mempool events: transaction was added or removed from the mempool.
type Type ¶
type Type byte
Type represents mempool event type.
func GetEventTypeFromString ¶
GetEventTypeFromString converts the input string into the Type if it's possible.
func (Type) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Type) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.