mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-15 04:57:12 -04:00
merge
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
||||
.\#*
|
||||
.*.sw?
|
||||
*.coverprofile
|
||||
go-i2p
|
@ -1,7 +1,6 @@
|
||||
package common
|
||||
|
||||
import (
|
||||
//"github.com/stretchr/testify/assert"
|
||||
//"testing"
|
||||
//"github.com/stretchr/testify/assert"
|
||||
//"testing"
|
||||
)
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
package netdb
|
||||
|
||||
import (
|
||||
"github.com/bounce-chat/go-i2p/lib/common"
|
||||
"github.com/hkparker/go-i2p/lib/common"
|
||||
)
|
||||
|
||||
// i2p network database, storage of i2p RouterInfos
|
||||
|
@ -1,7 +1,7 @@
|
||||
package transport
|
||||
|
||||
import (
|
||||
"github.com/bounce-chat/go-i2p/lib/common"
|
||||
"github.com/hkparker/go-i2p/lib/common"
|
||||
)
|
||||
|
||||
// muxes multiple transports into 1 Transport
|
||||
|
@ -1,8 +1,8 @@
|
||||
package transport
|
||||
|
||||
import (
|
||||
"github.com/bounce-chat/go-i2p/lib/common"
|
||||
"github.com/bounce-chat/go-i2p/lib/i2np"
|
||||
"github.com/hkparker/go-i2p/lib/common"
|
||||
"github.com/hkparker/go-i2p/lib/i2np"
|
||||
)
|
||||
|
||||
// a session between 2 routers for tranmitting i2np messages securly
|
||||
@ -28,11 +28,11 @@ type Transport interface {
|
||||
// returns any errors that happen if they do
|
||||
SetIdentity(ident common.RouterIdentity) error
|
||||
|
||||
// Obtain a transport session with a router given the Hash of its RouterInfo.
|
||||
// Obtain a transport session with a router given its RouterInfo.
|
||||
// If a session with this router is NOT already made attempt to create one and block until made or until an error happens
|
||||
// returns an established TransportSession and nil on success
|
||||
// returns nil and an error on error
|
||||
GetSession(routerInfo common.Hash) (TransportSession, error)
|
||||
GetSession(routerInfo common.RouterInfo) (TransportSession, error)
|
||||
|
||||
// return true if a routerInfo is compatable with this transport
|
||||
Compatable(routerInfo common.RouterInfo) bool
|
||||
|
Reference in New Issue
Block a user