code: func level(req *http.Request) (store.ConsistencyLevel, error) {
  	q := req.URL.Query()
  	lvl := strings.TrimSpace(q.Get("level"))
  
  	switch strings.ToLower(lvl) {
  	case "none":
  		return store.None, nil
  	case "weak":
  		return store.Weak, nil
  	case "strong":
  		return store.Strong, nil
  	default:
  		return store.Weak, nil
  	}
  }
docs: // level returns the requested consistency level for a query