Documentation ¶
Overview ¶
nolint:unused
Index ¶
Constants ¶
View Source
const ( // MetricsSubsystem is a subsystem shared by all metrics exposed by this // package. MetricsSubsystem = "blockchain" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { // events_in EventsIn metrics.Counter // events_in EventsHandled metrics.Counter // events_out EventsOut metrics.Counter // errors_in ErrorsIn metrics.Counter // errors_handled ErrorsHandled metrics.Counter // errors_out ErrorsOut metrics.Counter // events_shed EventsShed metrics.Counter // events_sent EventsSent metrics.Counter // errors_sent ErrorsSent metrics.Counter // errors_shed ErrorsShed metrics.Counter }
Metrics contains metrics exposed by this package.
func PrometheusMetrics ¶
Can we burn in the routine name here?
type Routine ¶
type Routine struct {
// contains filtered or unexported fields
}
Routines are a structure which model a finite state machine as serialized stream of events processed by a handle function. This Routine structure handles the concurrency and messaging guarantees. Events are sent via `send` are handled by the `handle` function to produce an iterator `next()`. Calling `close()` on a routine will conclude processing of all sent events and produce `final()` event representing the terminal state.
Click to show internal directories.
Click to hide internal directories.