http

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

type HTTP struct {
	Client          *http.Client
	EnableTLS       *bool
	TLSCA           *string
	TLSCert         *string
	TLSKey          *string
	TLSInsecure     *bool
	RetrieveRequest *RetrieveRequest
	ClearRequest    *HTTPRequest
	FailRequest     *HTTPRequest
	Key             *string
}

func (*HTTP) Cleanup

func (d *HTTP) Cleanup() error

func (*HTTP) ClearWork

func (d *HTTP) ClearWork() error

func (*HTTP) GetWork

func (d *HTTP) GetWork() (io.Reader, error)

func (*HTTP) HandleFailure

func (d *HTTP) HandleFailure() error

func (*HTTP) Init

func (d *HTTP) Init() error

func (*HTTP) LoadEnv

func (d *HTTP) LoadEnv(prefix string) error

func (*HTTP) LoadFlags

func (d *HTTP) LoadFlags() error

type HTTPRequest

type HTTPRequest struct {
	Method                string
	URL                   string
	ContentType           string
	SuccessfulStatusCodes []int
	Headers               map[string]string
	Body                  io.Reader
}

type RetrieveRequest

type RetrieveRequest struct {
	HTTPRequest
	KeyJSONSelector  string
	WorkJSONSelector string
}

Jump to

Keyboard shortcuts

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