Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockServer ¶
MockServer provides a test HTTP server with various endpoints for testing
func NewMockServer ¶
func NewMockServer() *MockServer
NewMockServer creates a new mock HTTP server for testing
func (*MockServer) GetRequestCount ¶
func (ms *MockServer) GetRequestCount() int64
GetRequestCount returns the total number of requests received
func (*MockServer) ResetRequestCount ¶
func (ms *MockServer) ResetRequestCount()
ResetRequestCount resets the request counter to zero
func (*MockServer) SetRateLimit ¶
func (ms *MockServer) SetRateLimit(rps int)
SetRateLimit configures the rate limit for the rate-limited endpoint
func (*MockServer) TestEndpoints ¶
func (ms *MockServer) TestEndpoints() []TestEndpoint
TestEndpoints returns a slice of test endpoint configurations
Click to show internal directories.
Click to hide internal directories.