http

package
v0.36.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToCSVFile added in v0.33.0

func ConvertToCSVFile(page alarms.AlarmsPage, timeFormat string) ([]byte, error)

func ConvertToJSONFile added in v0.33.0

func ConvertToJSONFile(page alarms.AlarmsPage, timeFormat string) ([]byte, error)

func Flatten added in v0.33.0

func Flatten(m map[string]any, prefix string) map[string]any

func MakeHandler

func MakeHandler(tracer opentracing.Tracer, svc alarms.Service, logger log.Logger) http.Handler

MakeHandler returns a HTTP handler for Alarm API endpoints.

Types

type AlarmsPageRes

type AlarmsPageRes struct {
	Total  uint64          `json:"total"`
	Offset uint64          `json:"offset"`
	Limit  uint64          `json:"limit"`
	Order  string          `json:"order,omitempty"`
	Dir    string          `json:"direction,omitempty"`
	Alarms []alarmResponse `json:"alarms"`
}

Jump to

Keyboard shortcuts

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