Documentation
¶
Index ¶
- Constants
- type Config
- type Node
- type StreamConn
- func (c *StreamConn) Close() error
- func (c *StreamConn) LocalAddr() net.Addr
- func (c *StreamConn) Read(b []byte) (int, error)
- func (c *StreamConn) RemoteAddr() net.Addr
- func (c *StreamConn) SetDeadline(t time.Time) error
- func (c *StreamConn) SetReadDeadline(t time.Time) error
- func (c *StreamConn) SetWriteDeadline(t time.Time) error
- func (c *StreamConn) Write(b []byte) (int, error)
Constants ¶
View Source
const ProtocolID = "/chatssh/ssh/1.0.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Node ¶
Node wraps a libp2p host with ChatSSH transport helpers.
func (*Node) DialPeerByIP ¶
DialPeerByIP attempts connection using IP-based multiaddr patterns.
type StreamConn ¶
StreamConn wraps a libp2p stream as net.Conn for SSH.
func NewStreamConn ¶
func NewStreamConn(s network.Stream) *StreamConn
NewStreamConn wraps a libp2p stream.
func (*StreamConn) Close ¶
func (c *StreamConn) Close() error
func (*StreamConn) LocalAddr ¶
func (c *StreamConn) LocalAddr() net.Addr
func (*StreamConn) RemoteAddr ¶
func (c *StreamConn) RemoteAddr() net.Addr
func (*StreamConn) SetDeadline ¶
func (c *StreamConn) SetDeadline(t time.Time) error
func (*StreamConn) SetReadDeadline ¶
func (c *StreamConn) SetReadDeadline(t time.Time) error
func (*StreamConn) SetWriteDeadline ¶
func (c *StreamConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.