Documentation
¶
Index ¶
- Variables
- type Client
- type ClientImplementation
- type MockClient
- type Parameter
- type Request
- type Response
- func Delete(url string, params ...Parameter) (*Response, error)
- func Get(url string, params ...Parameter) (*Response, error)
- func Head(url string, params ...Parameter) (*Response, error)
- func Options(url string, params ...Parameter) (*Response, error)
- func Post(url string, params ...Parameter) (*Response, error)
- func Put(url string, params ...Parameter) (*Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultClient = ClientImplementation{http.DefaultClient}
Functions ¶
This section is empty.
Types ¶
type ClientImplementation ¶
type MockClient ¶
type MockClient struct { Client Method chan string URL chan string Parameters chan []Parameter OutResponse chan *Response OutError error }
func NewMockClient ¶
func NewMockClient(l int) *MockClient
type Parameter ¶
type Parameter func(*Request)
Parameter is an optional argument expected by the request API
Click to show internal directories.
Click to hide internal directories.