Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMetrics()
- type ClickhouseSinker
- func (s *ClickhouseSinker) HandleBlockScopedData(ctx context.Context, data *pbsubstreamsrpc.BlockScopedData, isLive *bool, ...) error
- func (s *ClickhouseSinker) HandleBlockUndoSignal(ctx context.Context, data *pbsubstreamsrpc.BlockUndoSignal, ...) error
- func (s *ClickhouseSinker) Run(ctx context.Context)
- type Stats
Constants ¶
View Source
const ( HISTORICAL_BLOCK_FLUSH_EACH = 1000 LIVE_BLOCK_FLUSH_EACH = 1 )
Variables ¶
View Source
var FlushCount = metrics.NewCounter("substreams_sink_clickhouse_store_flush_count", "The amount of flush that happened so far")
View Source
var FlushDuration = metrics.NewCounter("substreams_sink_clickhouse_store_flush_duration", "The amount of time spent flushing cache to db (in nanoseconds)")
View Source
var FlushedEntriesCount = metrics.NewGauge("substreams_sink_clickhouse_flushed_entries_count", "The number of flushed entries so far")
Functions ¶
func RegisterMetrics ¶
func RegisterMetrics()
Types ¶
type ClickhouseSinker ¶
type ClickhouseSinker struct { *shutter.Shutter *sink.Sinker // contains filtered or unexported fields }
func (*ClickhouseSinker) HandleBlockScopedData ¶
func (s *ClickhouseSinker) HandleBlockScopedData(ctx context.Context, data *pbsubstreamsrpc.BlockScopedData, isLive *bool, cursor *sink.Cursor) error
func (*ClickhouseSinker) HandleBlockUndoSignal ¶
func (s *ClickhouseSinker) HandleBlockUndoSignal(ctx context.Context, data *pbsubstreamsrpc.BlockUndoSignal, cursor *sink.Cursor) error
func (*ClickhouseSinker) Run ¶
func (s *ClickhouseSinker) Run(ctx context.Context)
type Stats ¶
func (*Stats) RecordBlock ¶
Click to show internal directories.
Click to hide internal directories.