handlers

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRequestHandler

type HTTPRequestHandler interface {
	HTTPRequest(ctx context.Context, dryrun bool, p *HTTPRequestParams) error
}

func NewHTTPRequest

func NewHTTPRequest(client *http.Client, fs afero.Fs) HTTPRequestHandler

type HTTPRequestHandlerFunc

type HTTPRequestHandlerFunc func(ctx context.Context, dryrun bool, p *HTTPRequestParams) error

func (HTTPRequestHandlerFunc) HTTPRequest

func (f HTTPRequestHandlerFunc) HTTPRequest(ctx context.Context, dryrun bool, p *HTTPRequestParams) error

type HTTPRequestParams

type HTTPRequestParams struct {
	URL  string
	Path string
}

func (*HTTPRequestParams) String

func (p *HTTPRequestParams) String() string

Directories

Path Synopsis
Package mock_handlers is a generated GoMock package.
Package mock_handlers is a generated GoMock package.

Jump to

Keyboard shortcuts

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