http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateOptions

type CertificateOptions struct {
	ValidFor goplum.Duration `json:"valid_for"`
}

type GetCheck

type GetCheck struct {
	// contains filtered or unexported fields
}

func (GetCheck) Execute

func (t GetCheck) Execute() goplum.Result

type GetCheckType

type GetCheckType struct{}

func (GetCheckType) Create

func (c GetCheckType) Create(config json.RawMessage) (goplum.Check, error)

func (GetCheckType) Name

func (c GetCheckType) Name() string

type GetParams

type GetParams struct {
	Url         string              `json:"url"`
	Content     string              `json:"content"`
	Certificate *CertificateOptions `json:"certificate"`
}

type Plugin

type Plugin struct{}

func (Plugin) Alerts

func (h Plugin) Alerts() []goplum.AlertType

func (Plugin) Checks

func (h Plugin) Checks() []goplum.CheckType

func (Plugin) Name

func (h Plugin) Name() string

type WebHookAlert

type WebHookAlert struct {
	// contains filtered or unexported fields
}

func (WebHookAlert) Send

func (w WebHookAlert) Send(details goplum.AlertDetails) error

type WebHookAlertType

type WebHookAlertType struct{}

func (WebHookAlertType) Create

func (w WebHookAlertType) Create(config json.RawMessage) (goplum.Alert, error)

func (WebHookAlertType) Name

func (w WebHookAlertType) Name() string

type WebHookParams

type WebHookParams struct {
	Url string `json:"url"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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