Documentation
¶
Index ¶
- func AddrPortDetailsFromString(addrPort string) (netip.AddrPort, string, error)
- func ConvertAddrToIP(addr netip.Addr) net.IP
- func ExpandStringTemplate(templateString string, data any) (string, error)
- func FindInterfaceForAddr(a netip.Addr) (string, error)
- func FindInterfaceForIP(ip net.IP) (string, error)
- func NewConnWithCloser(c net.Conn, closer func(net.Conn)) net.Conn
- func TCPAddrFromURL(url *url.URL) (string, error)
- func TCPPortFromURL(url *url.URL) (string, error)
- type ConnWithCloser
- func (s *ConnWithCloser) Close() error
- func (s *ConnWithCloser) LocalAddr() net.Addr
- func (s *ConnWithCloser) NetConn() net.Conn
- func (s *ConnWithCloser) Read(b []byte) (int, error)
- func (s *ConnWithCloser) RemoteAddr() net.Addr
- func (s *ConnWithCloser) SetDeadline(t time.Time) error
- func (s *ConnWithCloser) SetReadDeadline(t time.Time) error
- func (s *ConnWithCloser) SetWriteDeadline(t time.Time) error
- func (s *ConnWithCloser) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandStringTemplate ¶
Types ¶
type ConnWithCloser ¶
type ConnWithCloser struct {
// contains filtered or unexported fields
}
func (*ConnWithCloser) Close ¶
func (s *ConnWithCloser) Close() error
func (*ConnWithCloser) LocalAddr ¶
func (s *ConnWithCloser) LocalAddr() net.Addr
func (*ConnWithCloser) NetConn ¶
func (s *ConnWithCloser) NetConn() net.Conn
func (*ConnWithCloser) RemoteAddr ¶
func (s *ConnWithCloser) RemoteAddr() net.Addr
func (*ConnWithCloser) SetDeadline ¶
func (s *ConnWithCloser) SetDeadline(t time.Time) error
func (*ConnWithCloser) SetReadDeadline ¶
func (s *ConnWithCloser) SetReadDeadline(t time.Time) error
func (*ConnWithCloser) SetWriteDeadline ¶
func (s *ConnWithCloser) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.