watch

package
v0.0.0-...-3e72c95 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvalidResponseError

type InvalidResponseError struct {
	ErrorMessage string
	StatusCode   int
	Header       map[string][]string
	Body         []byte
	Duration     time.Duration
}

func (*InvalidResponseError) Error

func (err *InvalidResponseError) Error() string

type Replace

type Replace struct {
	Pattern     string
	ReplaceWith string
}

type ReturnObject

type ReturnObject struct {
	StatusCode int
	Body       []byte
	Duration   time.Duration
	Header     map[string][]string
}

type Watch

type Watch struct {
	Name                    string
	Cron                    string
	URL                     string
	Description             string
	Method                  string
	Body                    string
	Header                  map[string]string
	AdditionalTo            []string
	NoErrorMailOnStatusCode []int
	Disabled                bool
	Pattern                 string
	Replaces                []Replace
	RetryOnMatch            []string
	SkipSofterrorPatterns   bool
	JQ                      string
	// contains filtered or unexported fields
}

func New

func New(c config.WatchConfig, logger logger.Logger, httpClient *httpint.Client) Watch

func (Watch) Process

func (w Watch) Process(ctx context.Context, config config.Configuration) (*ReturnObject, error)

Jump to

Keyboard shortcuts

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