Documentation ¶
Index ¶
- type PeerFinder
- type Stream
- func (s *Stream) Close() error
- func (s *Stream) FullClose() error
- func (s *Stream) Headers() p2p.Headers
- func (s *Stream) Read(p []byte) (n int, err error)
- func (s *Stream) Reset() error
- func (s *Stream) ResponseHeaders() p2p.Headers
- func (s *Stream) SetReadErr(err error, checkmark int)
- func (s *Stream) SetWriteErr(err error, checkmark int)
- func (s *Stream) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerFinder ¶
type PeerFinder struct {
// contains filtered or unexported fields
}
todo: implement peer registry mocks, export appropriate interface and move those in libp2p so it can be used in handshake
func (*PeerFinder) SetFound ¶
func (p *PeerFinder) SetFound(found bool)
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func (*Stream) ResponseHeaders ¶
func (*Stream) SetReadErr ¶
func (*Stream) SetWriteErr ¶
Click to show internal directories.
Click to hide internal directories.