Add the new NumGen

Added the new and distributed NumGen, which replaces the old one. The
old implementation was based on a master server.
This commit is contained in:
Thorsten Sommer committed 2015-06-18 17:13:41 +02:00
1 parent 6dab89a1d4
commit 81c4d15d9f
19 files changed
+342 -300

No files matched your search

-7
View File
@@ -8,7 +8,6 @@ import (
"github.com/SommerEngineering/Ocean/Log"
LM "github.com/SommerEngineering/Ocean/Log/Meta"
"github.com/SommerEngineering/Ocean/Log/Web"
"github.com/SommerEngineering/Ocean/NumGen"
"github.com/SommerEngineering/Ocean/Robots"
"github.com/SommerEngineering/Ocean/StaticFiles"
"github.com/SommerEngineering/Ocean/WebContent"
@@ -30,9 +29,6 @@ func InitHandlers() {
// Handler for other static files:
Handlers.AddPublicHandler(`/staticFiles/`, StaticFiles.HandlerStaticFiles)
// Handler for the number generator:
Handlers.AddPublicHandler(`/next/number`, NumGen.HandlerGetNext)
// Handler for the robots.txt:
Handlers.AddPublicHandler(`/robots.txt`, Robots.HandlerRobots)
@@ -49,9 +45,6 @@ func InitHandlers() {
// Handler for other static files:
Handlers.AddAdminHandler(`/staticFiles/`, StaticFiles.HandlerStaticFiles)
// Handler for the number generator:
Handlers.AddAdminHandler(`/next/number`, NumGen.HandlerGetNext)
// Handler for the ICCC to the private side:
Handlers.AddAdminHandler(`/ICCC`, ICCC.ICCCHandler)