httputil

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteJSONResponse

func WriteJSONResponse(w http.ResponseWriter, logger *zap.Logger, status int, response any)

Types

type PrometheusAlertResponse

type PrometheusAlertResponse struct {
	Message    string `json:"message"`
	Total      int    `json:"total"`
	Successful int    `json:"successful"`
	Skipped    int    `json:"skipped"`
}

Jump to

Keyboard shortcuts

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