]> git.rm.cloudns.org Git - xonotic/xonstat.git/commit
"Intercept" requests during downtime
authorAnt Zucaro <azucaro@gmail.com>
Sun, 17 Feb 2013 21:05:33 +0000 (16:05 -0500)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 17 Feb 2013 21:05:33 +0000 (16:05 -0500)
commitf5211a070a4ae050e0f2504298b98a64aeaf3654
tree6aaf50e0143dfe2faf9a4df9c26f90993004ce96
parent76e673e444b0b153e0735b433304cb311d16afb5
"Intercept" requests during downtime

This is a Golang utility that allows the stats maintainer to still
accept requests from remote servers while the XonStat server is
down for maintenance. It basically takes the requests and stores
them into a small sqlite3 database for future (re)submission.

When users navigate to the normal stats URL, they'll be greeted
with a downpage informing them of maintenance work instead of the
normal app.

Usage of xs_interceptor:
    xs_interceptor [options] <command>

Where <command> is one of the following:
    create   - create the requests db (sqlite3 db file)
    drop     - remove the requests db
    list     - lists the requests in the db
    serve    - listens for stats requests, storing them if found
    resubmit - resubmits the requests to another URL

Where [options] is one or more of the following:
    -port    - port number (int) to listen on for 'serve' command
    -url     - url (string) to submit requests
12 files changed:
xonstat/util/xs_interceptor/static/css/bootstrap-responsive.css [new file with mode: 0644]
xonstat/util/xs_interceptor/static/css/bootstrap-responsive.min.css [new file with mode: 0644]
xonstat/util/xs_interceptor/static/css/bootstrap.css [new file with mode: 0644]
xonstat/util/xs_interceptor/static/css/bootstrap.min.css [new file with mode: 0644]
xonstat/util/xs_interceptor/static/css/custom.css [new file with mode: 0644]
xonstat/util/xs_interceptor/static/img/glyphicons-halflings-white.png [new file with mode: 0644]
xonstat/util/xs_interceptor/static/img/glyphicons-halflings.png [new file with mode: 0644]
xonstat/util/xs_interceptor/static/img/web_background_3.jpg [new file with mode: 0644]
xonstat/util/xs_interceptor/static/js/bootstrap.js [new file with mode: 0644]
xonstat/util/xs_interceptor/static/js/bootstrap.min.js [new file with mode: 0644]
xonstat/util/xs_interceptor/templates/landing.html [new file with mode: 0644]
xonstat/util/xs_interceptor/xs_interceptor.go [new file with mode: 0644]