/go-simple-server

Go HTTP Server Example

Primary LanguageGo

Go HTTP Server Example

HTTP server which on each request responds with a counter of the total number of requests that it has received during the previous 60 seconds (moving window). The server continues to return correct numbers after restart, by persisting data to a file.

Build Status

NOTE: Tests run long because there's a test which checks log cleanup as time goes.