Documentation ¶ Index ¶ Constants Variables func CheckHeader(t *testing.T, headers http.Header) func CheckTimestampAndSignature(t *testing.T, params url.Values) type MockHTTPClient func (m *MockHTTPClient) Do(req *http.Request) (*http.Response, error) Constants ¶ View Source const ( MockDomain = "mock" MockApiKey = "apikey" MockSecret = "secret" ) Variables ¶ View Source var ( // GetDoFunc fetches the mock client's `Do` func GetDoFunc func(req *http.Request) (*http.Response, error) ) Functions ¶ func CheckHeader ¶ func CheckHeader(t *testing.T, headers http.Header) func CheckTimestampAndSignature ¶ func CheckTimestampAndSignature(t *testing.T, params url.Values) Types ¶ type MockHTTPClient ¶ type MockHTTPClient struct { DoFunc func(req *http.Request) (*http.Response, error) } MockClient is the mock client func (*MockHTTPClient) Do ¶ func (m *MockHTTPClient) Do(req *http.Request) (*http.Response, error) Do is the mock client's `Do` func Source Files ¶ View all Source files http.go Click to show internal directories. Click to hide internal directories.