v1

package
v0.0.0-...-a57a6f7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Client   db.DbClient
	Config   *config.Config
	Template *template.Template
}

func New

func New(config *config.Config) (*Api, error)

func (*Api) ApiAlerts

func (api *Api) ApiAlerts(w http.ResponseWriter, r *http.Request)

func (*Api) ApiHealthy

func (api *Api) ApiHealthy(w http.ResponseWriter, r *http.Request)

func (*Api) UpdateStatus

func (api *Api) UpdateStatus() error

type Data

type Data struct {
	Receiver string                   `json:"receiver"`
	Alerts   []map[string]interface{} `json:"alerts"`
}

type Resp

type Resp struct {
	Status   string   `json:"status"`
	Error    string   `json:"error,omitempty"`
	Warnings []string `json:"warnings,omitempty"`
}

Jump to

Keyboard shortcuts

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