runner

package
v0.0.0-...-61d6c1e Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package runner is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunner

func NewRunner(opts ...Option) *runner

Types

type HttpClient

type HttpClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type MockHttpClient

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

MockHttpClient is a mock of HttpClient interface.

func NewMockHttpClient

func NewMockHttpClient(ctrl *gomock.Controller) *MockHttpClient

NewMockHttpClient creates a new mock instance.

func (*MockHttpClient) Do

func (m *MockHttpClient) Do(req *http.Request) (*http.Response, error)

Do mocks base method.

func (*MockHttpClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockHttpClientMockRecorder

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

MockHttpClientMockRecorder is the mock recorder for MockHttpClient.

func (*MockHttpClientMockRecorder) Do

func (mr *MockHttpClientMockRecorder) Do(req interface{}) *gomock.Call

Do indicates an expected call of Do.

type Option

type Option func(*runner)

func WithHttpClient

func WithHttpClient(c *http.Client) Option

func WithMaxThreads

func WithMaxThreads(n int) Option

func WithRequestTimeout

func WithRequestTimeout(t time.Duration) Option

type Result

type Result struct {
	Url  string
	Size uint64
	Err  error
}

Jump to

Keyboard shortcuts

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