fix up structure

This commit is contained in:
Jeff Becker
2016-08-17 09:19:56 -04:00
parent b3f8b208cd
commit f1094c0ffe
16 changed files with 244 additions and 89 deletions

View File

@ -1,16 +1,14 @@
package netdb
import (
"github.com/hkparker/go-i2p/lib/common"
"io"
"path/filepath"
)
// netdb entry
// wraps a router info and provides serialization
type Entry struct {
fname string
}
func (e *Entry) FilePath(n StdNetDB) (str string) {
return filepath.Join(string(n), e.fname)
ri common.RouterInfo
}
func (e *Entry) WriteTo(w io.Writer) (err error) {