| 9 | ) |
| 10 | |
| 11 | type Conn struct { |
| 12 | buffer *bufio.Reader |
| 13 | conn net.Conn |
| 14 | clientID string |
| 15 | idgen int32 |
| 16 | versions atomic.Value // map[ApiKey]int16 |
| 17 | } |
| 18 | |
| 19 | func NewConn(conn net.Conn, clientID string) *Conn { |
| 20 | return &Conn{ |
nothing calls this directly
no outgoing calls
no test coverage detected