Initial cloud-services repo - gateway service + pkg modules
This commit is contained in:
13
pkg/httpclient/mock/client.go
Normal file
13
pkg/httpclient/mock/client.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package mock
|
||||
|
||||
import "net/http"
|
||||
|
||||
// Client is the mock client
|
||||
type Client struct {
|
||||
DoFunc func(req *http.Request) (*http.Response, error)
|
||||
}
|
||||
|
||||
// Do is the mock client's version
|
||||
func (m *Client) Do(req *http.Request) (*http.Response, error) {
|
||||
return m.DoFunc(req)
|
||||
}
|
||||
Reference in New Issue
Block a user