http

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: MPL-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package http is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient struct {
	ApiKey    string
	ApiSecret string
	Endpoint  string
	// contains filtered or unexported fields
}

func NewHttpClient

func NewHttpClient(config HttpClientConfig) (*HttpClient, error)

func (*HttpClient) Delete

func (self *HttpClient) Delete(path string) error

func (*HttpClient) Get

func (self *HttpClient) Get(path string, params map[string]string, response interface{}) error

func (*HttpClient) Patch added in v0.0.6

func (self *HttpClient) Patch(path string, request interface{}, response interface{}) error

func (*HttpClient) Post

func (self *HttpClient) Post(path string, request interface{}, response interface{}) error

func (*HttpClient) Put

func (self *HttpClient) Put(path string, request interface{}, response interface{}) error

type HttpClientConfig added in v0.0.9

type HttpClientConfig struct {
	ApiKey      string
	ApiSecret   string
	ApiEndpoint string
	UserAgent   string
	RestClient  *resty.Client
}

type HttpClientInterface

type HttpClientInterface interface {
	Get(path string, params map[string]string, response interface{}) error
	Post(path string, request interface{}, response interface{}) error
	Put(path string, request interface{}, response interface{}) error
	Delete(path string) error
	Patch(path string, request interface{}, response interface{}) error
}

type MockHttpClientInterface added in v0.0.4

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

MockHttpClientInterface is a mock of HttpClientInterface interface.

func NewMockHttpClientInterface added in v0.0.4

func NewMockHttpClientInterface(ctrl *gomock.Controller) *MockHttpClientInterface

NewMockHttpClientInterface creates a new mock instance.

func (*MockHttpClientInterface) Delete added in v0.0.4

func (m *MockHttpClientInterface) Delete(arg0 string) error

Delete mocks base method.

func (*MockHttpClientInterface) EXPECT added in v0.0.4

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

func (*MockHttpClientInterface) Get added in v0.0.4

func (m *MockHttpClientInterface) Get(arg0 string, arg1 map[string]string, arg2 interface{}) error

Get mocks base method.

func (*MockHttpClientInterface) Patch added in v0.0.6

func (m *MockHttpClientInterface) Patch(arg0 string, arg1, arg2 interface{}) error

Patch mocks base method.

func (*MockHttpClientInterface) Post added in v0.0.4

func (m *MockHttpClientInterface) Post(arg0 string, arg1, arg2 interface{}) error

Post mocks base method.

func (*MockHttpClientInterface) Put added in v0.0.4

func (m *MockHttpClientInterface) Put(arg0 string, arg1, arg2 interface{}) error

Put mocks base method.

type MockHttpClientInterfaceMockRecorder added in v0.0.4

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

MockHttpClientInterfaceMockRecorder is the mock recorder for MockHttpClientInterface.

func (*MockHttpClientInterfaceMockRecorder) Delete added in v0.0.4

func (mr *MockHttpClientInterfaceMockRecorder) Delete(arg0 interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockHttpClientInterfaceMockRecorder) Get added in v0.0.4

func (mr *MockHttpClientInterfaceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockHttpClientInterfaceMockRecorder) Patch added in v0.0.6

func (mr *MockHttpClientInterfaceMockRecorder) Patch(arg0, arg1, arg2 interface{}) *gomock.Call

Patch indicates an expected call of Patch.

func (*MockHttpClientInterfaceMockRecorder) Post added in v0.0.4

func (mr *MockHttpClientInterfaceMockRecorder) Post(arg0, arg1, arg2 interface{}) *gomock.Call

Post indicates an expected call of Post.

func (*MockHttpClientInterfaceMockRecorder) Put added in v0.0.4

func (mr *MockHttpClientInterfaceMockRecorder) Put(arg0, arg1, arg2 interface{}) *gomock.Call

Put indicates an expected call of Put.

Jump to

Keyboard shortcuts

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