app

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppName = "telemetry-api"

AppName is the name of the application.

Functions

func LoggerMiddleware added in v0.1.13

func LoggerMiddleware(next http.Handler) http.Handler

LoggerMiddleware adds the source IP to the logger.

func PanicRecoveryMiddleware added in v0.1.13

func PanicRecoveryMiddleware(next http.Handler) http.Handler

PanicRecoveryMiddleware recovers from panics and logs them.

Types

type App

type App struct {
	Handler       http.Handler
	QueryRecorder *queryRecorder.QueryRecorder
	// contains filtered or unexported fields
}

App is the main application for the telemetry API.

func New

func New(settings config.Settings) (*App, error)

New creates a new application.

func (*App) Cleanup

func (a *App) Cleanup()

Jump to

Keyboard shortcuts

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