httpe

package
v0.0.0-...-c092c37 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 License: MIT Imports: 11 Imported by: 1

Documentation

Overview

Package httpe is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutor

func NewExecutor(clientGen func(time.Duration) Doer) executor.TaskExecutor

NewExecutor creates TaskExecutor for HTTP tasks.

Types

type Doer

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

Doer is the interface of HTTP client.

type MockDoer

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

MockDoer is a mock of Doer interface

func NewMockDoer

func NewMockDoer(ctrl *gomock.Controller) *MockDoer

NewMockDoer creates a new mock instance

func (*MockDoer) Do

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

Do mocks base method

func (*MockDoer) EXPECT

func (m *MockDoer) EXPECT() *MockDoerMockRecorder

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

type MockDoerMockRecorder

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

MockDoerMockRecorder is the mock recorder for MockDoer

func (*MockDoerMockRecorder) Do

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

Do indicates an expected call of Do

Jump to

Keyboard shortcuts

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