get rid of stdi2p package, move everything relivent to common package

This commit is contained in:
Jeff Becker
2016-01-29 07:35:17 -05:00
parent 1e471e4e00
commit 6fcab3b7dd
9 changed files with 12 additions and 24 deletions

View File

@ -1,4 +1,4 @@
package stdi2p
package common
import (
"encoding/binary"

View File

@ -2,3 +2,9 @@ package common
// the sha256 of some datastructure
type IdentHash [32]byte
// i2p date time stamp
type Date [8]byte
// i2p bytestring
type String []byte

View File

@ -1,4 +1,4 @@
package stdi2p
package common
import (
"github.com/bounce-chat/go-i2p/lib/common/base32"

View File

@ -16,3 +16,7 @@ func (e *Entry) FilePath(n StdNetDB) (str string) {
func (e *Entry) WriteTo(w io.Writer) (err error) {
return
}
func (e *Entry) ReadFrom(r io.Reader) (err error) {
return
}

View File

@ -1,5 +0,0 @@
package stdi2p
// Router Identity
type RouterIdentity struct {
}

View File

@ -1,4 +0,0 @@
package stdi2p
type RouterInfo struct {
}

View File

@ -1,7 +0,0 @@
package stdi2p
// i2p date time stamp
type Date [8]byte
// i2p bytestring
type String []byte

View File

@ -1 +0,0 @@
package stdi2p

View File

@ -1,5 +0,0 @@
package stdi2p
// an su3 archive
type SU3 struct {
}