handler

package
v0.0.0-...-585c66d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppInfo

type AppInfo struct {
	AppName    string `json:"appName"`
	AppDesc    string `json:"appDesc"`
	AppVersion string `json:"appVersion"`
}

func (AppInfo) Handle

func (ai AppInfo) Handle(w http.ResponseWriter, r *http.Request)

type FluxConfig

type FluxConfig struct {
	Url     string            `json:"url"`
	Options map[string]string `json:"options"`
}

func NewFluxConfig

func NewFluxConfig() FluxConfig

func (FluxConfig) CallFluxApiImages

func (fc FluxConfig) CallFluxApiImages() ([]flux.ImageStatus, error)

func (FluxConfig) FluxExporterRunner

func (fc FluxConfig) FluxExporterRunner(interval int)

func (FluxConfig) Handle

func (fc FluxConfig) Handle(w http.ResponseWriter, r *http.Request)

type Handler

type Handler interface {
	Handle(w http.ResponseWriter, r *http.Request)
}

type Health

type Health struct {
	Status string `json:"status"`
}

func (Health) Handle

func (h Health) Handle(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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