monitor

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

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 10 Imported by: 0

README

Monitor

Monitor middleware for Fiber that reports server metrics, inspired by express-status-monitor

Signatures
func New() fiber.Handler
Examples

Import the middleware package and assign it to a route.

package main

import (
	"log"

	"github.com/omnicells/tlsfiber"
	"github.com/omnicells/tlsfiber/middleware/monitor"
)

func main() {
	app := fiber.New()
	
	app.Get("/dashboard", monitor.New())
	
	log.Fatal(app.Listen(":3000"))
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() fiber.Handler

New creates a new middleware handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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