MCPcopy
hub / github.com/nicholas-fedor/watchtower / HTTPServer

Interface HTTPServer

pkg/api/api.go:56–59  ·  view source on GitHub ↗

HTTPServer defines the interface for an HTTP server.

Source from the content-addressed store, hash-verified

54
55// HTTPServer defines the interface for an HTTP server.
56type HTTPServer interface {
57 ListenAndServe() error
58 Shutdown(ctx context.Context) error
59}
60
61// ipLimiter wraps a rate limiter with a lastSeen timestamp for cleanup tracking.
62type ipLimiter struct {

Callers 10

RunHTTPServerFunction · 0.65
api_test.goFile · 0.65
TestDefaultFunction · 0.65
TestNewWithRegistryFunction · 0.65
RunHTTPServerFunction · 0.65

Implementers 3

mockHTTPServerpkg/api/api_test.go
MockHTTPServerpkg/api/mocks/HTTPServer.go
MockHTTPServer_Expecterpkg/api/mocks/HTTPServer.go

Calls

no outgoing calls

Tested by

no test coverage detected