Documentation
¶
Index ¶
- type Heartbeat
- func (h *Heartbeat) Name() string
- func (h *Heartbeat) RPCNamespace() string
- func (h *Heartbeat) RPCService() interface{}
- func (h *Heartbeat) Reset(chainID eth.ChainID, timestamp uint64, invalidatedBlock eth.BlockRef)
- func (h *Heartbeat) Start(ctx context.Context) error
- func (h *Heartbeat) Stop(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Heartbeat ¶
type Heartbeat struct {
// contains filtered or unexported fields
}
Activity that emits periodic heartbeats and exposes a simple liveness RPC.
func (*Heartbeat) RPCNamespace ¶
RPCNamespace returns the JSON-RPC namespace for this activity.
func (*Heartbeat) RPCService ¶
func (h *Heartbeat) RPCService() interface{}
RPCService returns the service object whose exported methods are exposed in RPC.
func (*Heartbeat) Reset ¶ added in v1.16.7
Reset is a no-op for heartbeat - it has no chain-specific state.
Click to show internal directories.
Click to hide internal directories.