Versions in this module Expand all Collapse all v1 v1.0.6 Jan 11, 2025 Changes in this version + func Mock() (*httptest.Server, chan HandledRequest, func()) + func MockService(urlKey, urlSuffix string, handler func(w http.ResponseWriter, r *http.Request)) *httptest.Server + type ConfigItem struct + Resp MockResp + Status int + Value string + type HandledRequest struct + B []byte + R *http.Request + W http.ResponseWriter + type Metrics struct + type MockResp map[string]any + type MockServiceConfig struct + func NewMockServiceConfig() *MockServiceConfig + func (m *MockServiceConfig) HandledRequestsCount() int + func (m *MockServiceConfig) SetConfigs(configSlice ...ConfigItem) *MockServiceConfig + func (m *MockServiceConfig) SetURLKey(key string) *MockServiceConfig + func (m *MockServiceConfig) SetURLSuffix(suffix string) *MockServiceConfig + func (m *MockServiceConfig) StartServer() *httptest.Server