app

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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
	// 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