Commit dfe48fc4 authored by Markus Seidl's avatar Markus Seidl

Cleanup commit

parent 4122b106
disk_free - Displays the remaining disk space
display_off - Switches the display off
display_on - Switches the display on
exit - Exit the application (don’t do this)
password - Authenticate yourself with a password
reboot - Reboot the display (maybe after upgrade?)
shutdown - Shuts down the display (still needs unplugging…)
upgrade - Upgrades the display bot code
\ No newline at end of file
package server
import (
"log"
"net/http"
"time"
)
func Logger(inner http.Handler, name string) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
start := time.Now()
inner.ServeHTTP(w, r)
log.Printf(
"%s %s %s %s",
r.Method,
r.RequestURI,
name,
time.Since(start),
)
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment