metrics

package
v0.0.0-...-e652847 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MetricsQueue is the name we use to queueSub to a queue with the metrics
	MetricsQueue = "metrics_queue"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	services.Options
}

Options is used to create a Service

func (Options) NewService

func (o Options) NewService() *Service

NewService returns a new Service

type Service

type Service struct {
	services.BaseService
	Opts Options
	// contains filtered or unexported fields
}

Service is the metrics service implementation The metrics service is responsible for keeping track of global metrics of the bus

func New

func New(options Options) *Service

New returns a new Service

func (*Service) Shutdown

func (s *Service) Shutdown() error

Shutdown the service

func (*Service) Startup

func (s *Service) Startup() error

Startup ...

Jump to

Keyboard shortcuts

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