client_v1.go 249 B

1234567891011121314151617181920
  1. package nsqlookupd
  2. import (
  3. "net"
  4. )
  5. type ClientV1 struct {
  6. net.Conn
  7. peerInfo *PeerInfo
  8. }
  9. func NewClientV1(conn net.Conn) *ClientV1 {
  10. return &ClientV1{
  11. Conn: conn,
  12. }
  13. }
  14. func (c *ClientV1) String() string {
  15. return c.RemoteAddr().String()
  16. }