su3 parser

This commit is contained in:
Matt Drollette
2014-12-09 17:00:18 -06:00
parent aea04a6719
commit 2d445337c8
9 changed files with 408 additions and 70 deletions

View File

@@ -1,19 +1,5 @@
package reseed
// read in all files from netdb dir into a slice of routerinfos
// for every unique requesting IP
// look up that IP in the db
// - if it exists, check the creation time
// - if the creation time is within the threshold, serve up the routerinfos
// - if the creation time is outside the threshold, or if it does not exist generate a new slice of routerinfos from the current master set
// at some regular interval, update the master slice with fresh netdb routerinfos
// can serve up html/ul of routerinfos
// can serve up su3 signed file
// https://geti2p.net/en/docs/spec/updates
import (
"bytes"
"fmt"

View File

@@ -1,5 +1 @@
package reseed
const (
LIST_TEMPLATE = `<html><head><title>NetDB</title></head><body><ul>{{ range $index, $_ := . }}<li><a href="{{ $index }}">{{ $index }}</a></li>{{ end }}</ul></body></html>`
)