func (mc *Client) sendAck(pkt *gomemcached.MCRequest) { res := gomemcached.MCResponse{ Opcode: pkt.Opcode, Opaque: pkt.Opaque, Status: gomemcached.SUCCESS, } res.Transmit(mc.conn) }
func transmitResponse(o io.Writer, res *gomemcached.MCResponse) (err error) { return res.Transmit(o) }
func notFound(req *gomemcached.MCRequest, s *storage) *gomemcached.MCResponse { var response gomemcached.MCResponse response.Status = gomemcached.UNKNOWN_COMMAND return &response }