github.com/nsqio/nsq@v1.3.0/nsqlookupd/client_v1.go (about) 1 package nsqlookupd 2 3 import ( 4 "net" 5 ) 6 7 type ClientV1 struct { 8 net.Conn 9 peerInfo *PeerInfo 10 } 11 12 func NewClientV1(conn net.Conn) *ClientV1 { 13 return &ClientV1{ 14 Conn: conn, 15 } 16 } 17 18 func (c *ClientV1) String() string { 19 return c.RemoteAddr().String() 20 }