Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventHandler ¶
this is an area of improvement since we should have knowledge about what logs are relevant
type HeaderProcessor ¶
type HeaderReceiver ¶
type HeaderReceiver struct {
// contains filtered or unexported fields
}
this is an area of improvement, as we could handle multiple filters
func NewHeaderReceiver ¶
func NewHeaderReceiver(c *ethclient.Client, timeout time.Duration) *HeaderReceiver
func (*HeaderReceiver) Receive ¶
func (h *HeaderReceiver) Receive(ctx context.Context, handler EventHandler, header <-chan *types.Header)
type WSConnectionManager ¶
type WSConnectionManager struct {
// contains filtered or unexported fields
}
func NewWSConnectionManager ¶
func NewWSConnectionManager(wsURL string) *WSConnectionManager
func (*WSConnectionManager) ManageHeaderConnection ¶
func (m *WSConnectionManager) ManageHeaderConnection(ctx context.Context, header chan<- *types.Header)
Click to show internal directories.
Click to hide internal directories.