Documentation ¶
Index ¶
- func BridgeGetFileContent(key string, hash [20]byte) *bytes.Buffer
- func BridgeListen(addr *net.TCPAddr)
- func BridgeLocalCall(srcNei resourcePool.GNeighbor, data func(net.Conn) []byte)
- func BridgeSearchFileContent(word string, pass *bufio.Reader, neighbors []resourcePool.GNeighbor) *bytes.Buffer
- func BridgeSilentSend(srcNei resourcePool.GNeighbor, data func(net.Conn) []byte)
- func ConnectNeighbor(rAddr *net.UDPAddr) []byte
- func GetFileContent(rAddr *utils.UDPAddr, hash [20]byte) *bytes.Buffer
- func GetIndexInfo(rAddr *net.UDPAddr) resourcePool.GTree
- func SendData(conn *net.UDPConn, ask []byte)
- func SilentSend(rAddr utils.UDPAddr, data func(*net.UDPConn) []byte)
- func Start(wg event.Bus)
- type MiddleWareFn
- type Op
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BridgeListen ¶
func BridgeLocalCall ¶
func BridgeLocalCall(srcNei resourcePool.GNeighbor, data func(net.Conn) []byte)
func BridgeSearchFileContent ¶
func BridgeSilentSend ¶
func BridgeSilentSend(srcNei resourcePool.GNeighbor, data func(net.Conn) []byte)
func ConnectNeighbor ¶
func GetIndexInfo ¶
func GetIndexInfo(rAddr *net.UDPAddr) resourcePool.GTree
Types ¶
type MiddleWareFn ¶
Click to show internal directories.
Click to hide internal directories.