Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockServer ¶
type MockServer struct {
// contains filtered or unexported fields
}
MockServer is a simple mock server that can be used to mock HTTP responses
func (*MockServer) GetURL ¶
func (m *MockServer) GetURL() string
GetURL returns the URL of the mock server
func (*MockServer) WithGet ¶
func (m *MockServer) WithGet(path string, response Response)
WithGet sets a response for a GET request to the given path
func (*MockServer) WithPost ¶
func (m *MockServer) WithPost(path string, response Response)
WithPost sets a response for a POST request to the given path
Click to show internal directories.
Click to hide internal directories.