Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_BLOCK_PROGRESS = 1000 LIVE_BLOCK_PROGRESS = 1 )
Variables ¶
View Source
var FlushCount = metrics.NewCounter("substreams_sink_postgres_store_flush_count", "The amount of flush that happened so far")
View Source
var FlushDuration = metrics.NewCounter("substreams_sink_postgres_store_flush_duration", "The amount of time spent flushing cache to db")
View Source
var FlushedEntriesCount = metrics.NewCounter("substreams_sink_postgres_flushed_entries_count", "The number of flushed entries")
Functions ¶
func RegisterMetrics ¶
func RegisterMetrics()
Types ¶
type Config ¶
type Config struct { DBLoader *db.Loader BlockRange string Pkg *pbsubstreams.Package OutputModule *pbsubstreams.Module OutputModuleName string OutputModuleHash manifest.ModuleHash ClientConfig *client.SubstreamsClientConfig UndoBufferSize int LiveBlockTimeDelta time.Duration FlushInterval int SubstreamsDevelopmentMode bool IrreversibleOnly bool InfiniteRetry bool }
type PostgresSinker ¶
type PostgresSinker struct { *shutter.Shutter DBLoader *db.Loader Pkg *pbsubstreams.Package OutputModule *pbsubstreams.Module OutputModuleName string OutputModuleHash manifest.ModuleHash ClientConfig *client.SubstreamsClientConfig UndoBufferSize int LivenessTracker *sink.LivenessChecker FlushInterval int InfiniteRetry bool SubstreamsDevelopmentMode bool IrreversibleOnly bool // contains filtered or unexported fields }
type Stats ¶
func (*Stats) RecordBlock ¶
Click to show internal directories.
Click to hide internal directories.