Documentation ¶
Index ¶
- Variables
- func MockBody(m *MockData)
- func MockHeaders(testClientId uint32, testRequestId uint32, testHeaders map[string][]string)
- func MockHeadersAdd(testClientId uint32, testRequestId uint32, testHeaders map[string][]string)
- func MockHeadersGet(testClientId uint32, testRequestId uint32, testHeaders map[string][]string)
- func MockHeadersGetKeys(testClientId uint32, testRequestId uint32, testHeaders map[string][]string)
- func MockHeadersSet(testClientId uint32, testRequestId uint32, testHeaders map[string][]string)
- func MockMethod(testClientId, testRequestId uint32, setPtr *string)
- func MockNewClient(testId uint32)
- func MockNewRequest(testClientId uint32, testRequestId uint32)
- func MockNewRequestURL(testClientId uint32, testRequestId uint32, testURL string)
- func MockResponse(testClientId, testRequestId uint32, responseBody io.Reader)
- func MockResponseHeaders(testClientId, testRequestId uint32, testHeaders map[string][]string)
- func MockResponseHeadersGet(testClientId uint32, testRequestId uint32, testHeaders map[string][]string)
- func MockResponseHeadersGetKeys(testClientId uint32, testRequestId uint32, testHeaders map[string][]string)
- type MockData
Constants ¶
This section is empty.
Variables ¶
View Source
var AddHttpRequestHeader = func(clientId uint32, requestId uint32, key string, value string, ) (error errno.Error) { return 0 }
View Source
var CloseHttpResponseBody = func(clientId uint32, requestId uint32) (error errno.Error) {
return 0
}
View Source
var DeleteHttpRequestHeader = func(clientId uint32, requestId uint32, key string, ) (error errno.Error) { return 0 }
View Source
var DoHttpRequest = func(clientId uint32, requestId uint32) (error errno.Error) {
return 0
}
View Source
var GetHttpRequestHeader = func(clientId uint32, requestId uint32, key string, headerPtr *byte, ) (error errno.Error) { return 0 }
View Source
var GetHttpRequestHeaderKeys = func(clientId uint32, requestId uint32, headerPtr *byte, headerSize uint32, ) (error errno.Error) { return 0 }
View Source
var GetHttpRequestHeaderKeysSize = func(clientId uint32, requestId uint32, sizePtr *uint32, ) (error errno.Error) { return 0 }
View Source
var GetHttpRequestHeaderSize = func(clientId uint32, requestId uint32, key string, sizePtr *uint32, ) (error errno.Error) { return 0 }
View Source
var GetHttpRequestMethod = func(clientId uint32, requestId uint32, methodPtr *uint32) (error errno.Error) {
return 0
}
View Source
var GetHttpResponseHeader = func(clientId uint32, requestId uint32, key string, headerPtr *byte, ) (error errno.Error) { return 0 }
View Source
var GetHttpResponseHeaderKeys = func(clientId uint32, requestId uint32, headerPtr *byte, headerSize uint32, ) (error errno.Error) { return 0 }
View Source
var GetHttpResponseHeaderKeysSize = func(clientId uint32, requestId uint32, sizePtr *uint32, ) (error errno.Error) { return 0 }
View Source
var GetHttpResponseHeaderSize = func(clientId uint32, requestId uint32, key string, sizePtr *uint32, ) (error errno.Error) { return 0 }
View Source
var NewHttpClient = func(clientId *uint32) (error errno.Error) {
return 0
}
View Source
var NewHttpRequest = func(clientId uint32, requestIdPtr *uint32) (error errno.Error) {
return 0
}
View Source
var ReadHttpResponseBody = func(clientId uint32, requestId uint32, buf *byte, bufSize uint32, countPtr *uint32) (error errno.Error) {
return 0
}
View Source
var SetHttpRequestBody = func(clientId uint32, requestId uint32, data *byte, dataSize uint32) (error errno.Error) {
return 0
}
View Source
var SetHttpRequestHeader = func(clientId uint32, requestId uint32, key string, valuesPtr *byte, valuesSize uint32, ) (error errno.Error) { return 0 }
Functions ¶
func MockHeaders ¶
func MockHeadersAdd ¶ added in v0.1.6
func MockHeadersGet ¶ added in v0.1.6
func MockHeadersGetKeys ¶ added in v0.1.6
func MockHeadersSet ¶ added in v0.1.6
func MockMethod ¶
func MockNewClient ¶
func MockNewClient(testId uint32)
func MockNewRequest ¶
func MockNewRequestURL ¶
func MockResponse ¶
func MockResponseHeaders ¶ added in v0.2.1
func MockResponseHeadersGet ¶ added in v0.2.1
Types ¶
Click to show internal directories.
Click to hide internal directories.