prometheus

package
v0.0.0-...-7838e69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

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 WithAddress

func WithAddress(address string) Parameter

WithAddress sets the address.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

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 New

func New(ctx context.Context, params ...Parameter) (*Service, error)

New creates a new prometheus metrics service.

func (*Service) AccountManagerCompleted

func (s *Service) AccountManagerCompleted(started time.Time, request string, result core.Result)

AccountManagerCompleted is called when an account manager process is complete.

func (*Service) ListAccountsCompleted

func (s *Service) ListAccountsCompleted(started time.Time)

ListAccountsCompleted is called when an account list process has completed.

func (*Service) Presenter

func (s *Service) Presenter() string

Presenter returns the presenter for the events.

func (*Service) SignCompleted

func (s *Service) SignCompleted(started time.Time, request string, result core.Result)

SignCompleted is called when a signing process is complete.

func (*Service) WalletManagerCompleted

func (s *Service) WalletManagerCompleted(started time.Time, request string, result core.Result)

WalletManagerCompleted is called when a wallet manager process is complete.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL