Add documentation

This commit is contained in:
Thorsten Sommer committed 2015-06-17 17:44:52 +02:00
1 parent 69d0bdabf4
commit 6dab89a1d4
144 files changed
+1107 -549

No files matched your search

+3
View File
@@ -8,7 +8,10 @@ import (
"net/http"
)
// Handler for the access to the robots.txt.
func HandlerRobots(response http.ResponseWriter, request *http.Request) {
// Case: The system goes down now?
if Shutdown.IsDown() {
http.NotFound(response, request)
return
+3
View File
@@ -6,7 +6,10 @@ import (
LM "github.com/SommerEngineering/Ocean/Log/Meta"
)
// Init the package.
func init() {
Log.LogShort(senderName, LM.CategorySYSTEM, LM.LevelINFO, LM.MessageNameSTARTUP, `Init the robots component.`)
// Read the robots.txt from the database:
robotsContent = ConfigurationDB.Read(`robots.txt`)
}
+1 -1
View File
@@ -5,7 +5,7 @@ import (
)
var (
senderName LM.Sender = `System::Robots`
senderName LM.Sender = `System::Robots` // This is the name for logging event from this package
robotsContent string = `User-agent: *
Disallow: /`
)