monitoring

package
v0.0.0-...-1b3765c Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CfgHost    = "monitoring.host"
	CfgPort    = "monitoring.port"
	CfgTimeout = "monitoring.timeout"
)
View Source
const (
	StatusOk    = "ok"
	StatusError = "error"
)

Variables

This section is empty.

Functions

func Initialize

func Initialize(ctx context.Context, cfg Config) (context.Context, error)

Types

type Config

type Config struct {
	Host    string `mapstructure:"host"`
	Port    int    `mapstructure:"port"`
	Timeout int    `mapstructure:"timeout"`
}

Monitoring configuration.

type Server

type Server struct {
	Router *mux.Router
	Http   *http.Server
	// contains filtered or unexported fields
}

func (*Server) SetStatus

func (s *Server) SetStatus(status string)

Use to update the application status for monitoring.

Jump to

Keyboard shortcuts

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