Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for service parameters.
func WithChainTime ¶ added in v1.3.0
WithChainTime sets the chaintime service.
func WithCreateServer ¶ added in v1.8.0
WithCreateServer creates a web server for metrics if true.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a metrics service exposing metrics via prometheus.
func (*Service) ClientOperation ¶
func (s *Service) ClientOperation(provider string, operation string, succeeded bool, duration time.Duration)
ClientOperation registers an operation.
Click to show internal directories.
Click to hide internal directories.