monitoring

package
v0.0.0-...-23ae872 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "social-network"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Listen string `env:"PROMETHEUS_LISTEN,default=localhost:8082"`
}

type Service

type Service struct {
	Prom *fiberprometheus.FiberPrometheus
	// contains filtered or unexported fields
}

func New

func New(config Config, log *logrus.Logger) (*Service, error)

func (*Service) Run

func (s *Service) Run(ctx context.Context) error

func (*Service) Shutdown

func (s *Service) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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