Documentation ¶
Index ¶
- Constants
- Variables
- func ClientIP(conn net.Conn) string
- func CopyDate(dst io.Writer, src io.Reader) error
- func GetHostname() string
- func LocalPrivateIPV4() (net.IP, error)
- func NewYamuxConfig() *yamux.Config
- func TcpAddr(addrStr string) (*net.TCPAddr, error)
- func VerifyMagicStrConnection(conn net.Conn) error
- func VerifySSHMagicStrConnection(conn net.Conn) error
- type Validator
- type WaitGroup
Constants ¶
View Source
const ( MagicString = "GoV1" SSHMagicString = "SSHV1" HttpMagicString = "HTTPV1" )
Variables ¶
View Source
var HttpMagicBytes = []byte(HttpMagicString)
View Source
var MagicBytes = []byte(MagicString)
View Source
var NewLineByte = byte('\n')
View Source
var NewLineBytes = []byte{NewLineByte}
View Source
var SSHMagicBytes = []byte(SSHMagicString)
View Source
var SeparatorBytes = []byte(" ")
Functions ¶
func GetHostname ¶
func GetHostname() string
func LocalPrivateIPV4 ¶
func NewYamuxConfig ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.