http

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package http is the package to get status though HTTP.

Index

Constants

View Source
const PluginName = "http"

PluginName is the name of the plugin.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	Cron        string `yaml:"cron" default:"@10m"`
	Method      string `yaml:"method" default:"GET"`
	URL         string `yaml:"url"`
	// Values is a map of key/value to add to the spans. See recordMetricStatus.
	Values map[string]string `yaml:"values"`
}

Config is the configuration for an HTTP status.

type HTTP

type HTTP struct {
	SC     status.Config
	Method string
	URL    *neturl.URL
	Values map[string]string
	// contains filtered or unexported fields
}

HTTP is the main structure to use HTTP status.

func (*HTTP) Config

func (h *HTTP) Config() status.Config

Config returns the status.Config of the HTTP status.

Jump to

Keyboard shortcuts

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