Versions in this module Expand all Collapse all v2 v2.0.0 Jun 19, 2023 Changes in this version + type Client struct + func NewClient(httpClient HTTPClient, ...) *Client + func (a Client) Token(ctx context.Context) (string, time.Duration, error) + type HTTPClient interface + NewRequest func() HTTPRequest + type HTTPRequest interface + DisableTrace func() HTTPRequest + EnableTrace func() HTTPRequest + Get func(url string) (HTTPResponse, error) + Post func(url string) (HTTPResponse, error) + Put func(url string) (HTTPResponse, error) + SetContext func(ctx context.Context) HTTPRequest + SetError func(error interface{}) HTTPRequest + SetFormData func(data map[string]string) HTTPRequest + SetHeaders func(hdrs map[string]string) HTTPRequest + SetResult func(result interface{}) HTTPRequest + type HTTPResponse interface + Bytes func() []byte + Error func() interface{} + GetHeader func(key string) string + GetHeaderValues func(key string) []string + GetStatus func() string + GetStatusCode func() int + IsError func() bool + IsSuccess func() bool + Result func() interface{} + String func() string + ToBytes func() ([]byte, error) + ToString func() (string, error) + UnmarshalJson func(v interface{}) error + type MockHTTPClient struct + func NewMockHTTPClient(ctrl *gomock.Controller) *MockHTTPClient + func (m *MockHTTPClient) EXPECT() *MockHTTPClientMockRecorder + func (m *MockHTTPClient) NewRequest() HTTPRequest + type MockHTTPClientMockRecorder struct + func (mr *MockHTTPClientMockRecorder) NewRequest() *gomock.Call + type MockHTTPRequest struct + func NewMockHTTPRequest(ctrl *gomock.Controller) *MockHTTPRequest + func (m *MockHTTPRequest) DisableTrace() HTTPRequest + func (m *MockHTTPRequest) EXPECT() *MockHTTPRequestMockRecorder + func (m *MockHTTPRequest) EnableTrace() HTTPRequest + func (m *MockHTTPRequest) Get(url string) (HTTPResponse, error) + func (m *MockHTTPRequest) Post(url string) (HTTPResponse, error) + func (m *MockHTTPRequest) Put(url string) (HTTPResponse, error) + func (m *MockHTTPRequest) SetContext(ctx context.Context) HTTPRequest + func (m *MockHTTPRequest) SetError(error interface{}) HTTPRequest + func (m *MockHTTPRequest) SetFormData(data map[string]string) HTTPRequest + func (m *MockHTTPRequest) SetHeaders(hdrs map[string]string) HTTPRequest + func (m *MockHTTPRequest) SetResult(result interface{}) HTTPRequest + type MockHTTPRequestMockRecorder struct + func (mr *MockHTTPRequestMockRecorder) DisableTrace() *gomock.Call + func (mr *MockHTTPRequestMockRecorder) EnableTrace() *gomock.Call + func (mr *MockHTTPRequestMockRecorder) Get(url interface{}) *gomock.Call + func (mr *MockHTTPRequestMockRecorder) Post(url interface{}) *gomock.Call + func (mr *MockHTTPRequestMockRecorder) Put(url interface{}) *gomock.Call + func (mr *MockHTTPRequestMockRecorder) SetContext(ctx interface{}) *gomock.Call + func (mr *MockHTTPRequestMockRecorder) SetError(error interface{}) *gomock.Call + func (mr *MockHTTPRequestMockRecorder) SetFormData(data interface{}) *gomock.Call + func (mr *MockHTTPRequestMockRecorder) SetHeaders(hdrs interface{}) *gomock.Call + func (mr *MockHTTPRequestMockRecorder) SetResult(result interface{}) *gomock.Call + type MockHTTPResponse struct + func NewMockHTTPResponse(ctrl *gomock.Controller) *MockHTTPResponse + func (m *MockHTTPResponse) Bytes() []byte + func (m *MockHTTPResponse) EXPECT() *MockHTTPResponseMockRecorder + func (m *MockHTTPResponse) Error() interface{} + func (m *MockHTTPResponse) GetHeader(key string) string + func (m *MockHTTPResponse) GetHeaderValues(key string) []string + func (m *MockHTTPResponse) GetStatus() string + func (m *MockHTTPResponse) GetStatusCode() int + func (m *MockHTTPResponse) IsError() bool + func (m *MockHTTPResponse) IsSuccess() bool + func (m *MockHTTPResponse) Result() interface{} + func (m *MockHTTPResponse) String() string + func (m *MockHTTPResponse) ToBytes() ([]byte, error) + func (m *MockHTTPResponse) ToString() (string, error) + func (m *MockHTTPResponse) UnmarshalJson(v interface{}) error + type MockHTTPResponseMockRecorder struct + func (mr *MockHTTPResponseMockRecorder) Bytes() *gomock.Call + func (mr *MockHTTPResponseMockRecorder) Error() *gomock.Call + func (mr *MockHTTPResponseMockRecorder) GetHeader(key interface{}) *gomock.Call + func (mr *MockHTTPResponseMockRecorder) GetHeaderValues(key interface{}) *gomock.Call + func (mr *MockHTTPResponseMockRecorder) GetStatus() *gomock.Call + func (mr *MockHTTPResponseMockRecorder) GetStatusCode() *gomock.Call + func (mr *MockHTTPResponseMockRecorder) IsError() *gomock.Call + func (mr *MockHTTPResponseMockRecorder) IsSuccess() *gomock.Call + func (mr *MockHTTPResponseMockRecorder) Result() *gomock.Call + func (mr *MockHTTPResponseMockRecorder) String() *gomock.Call + func (mr *MockHTTPResponseMockRecorder) ToBytes() *gomock.Call + func (mr *MockHTTPResponseMockRecorder) ToString() *gomock.Call + func (mr *MockHTTPResponseMockRecorder) UnmarshalJson(v interface{}) *gomock.Call Other modules containing this package github.com/buyco/go-msc-sdk