httpClient

package
v0.0.0-...-03cd4a3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package httpClient is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Http

type Http interface {
	Connect()
	CallURL(method, url string, header map[string]string, rawData []byte) ([]byte, error)
}

func NewHttp

func NewHttp(cfg *config.Config) Http

type MockHttp

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

MockHttp is a mock of Http interface.

func NewMockHttp

func NewMockHttp(ctrl *gomock.Controller) *MockHttp

NewMockHttp creates a new mock instance.

func (*MockHttp) CallURL

func (m *MockHttp) CallURL(method, url string, header map[string]string, rawData []byte) ([]byte, error)

CallURL mocks base method.

func (*MockHttp) Connect

func (m *MockHttp) Connect()

Connect mocks base method.

func (*MockHttp) EXPECT

func (m *MockHttp) EXPECT() *MockHttpMockRecorder

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

type MockHttpMockRecorder

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

MockHttpMockRecorder is the mock recorder for MockHttp.

func (*MockHttpMockRecorder) CallURL

func (mr *MockHttpMockRecorder) CallURL(method, url, header, rawData interface{}) *gomock.Call

CallURL indicates an expected call of CallURL.

func (*MockHttpMockRecorder) Connect

func (mr *MockHttpMockRecorder) Connect() *gomock.Call

Connect indicates an expected call of Connect.

type Options

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

func (*Options) CallURL

func (o *Options) CallURL(method, url string, header map[string]string, rawData []byte) ([]byte, error)

func (*Options) Connect

func (o *Options) Connect()

Jump to

Keyboard shortcuts

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