(k string)
| 2779 | } |
| 2780 | |
| 2781 | func validKeyAtRoot(k string) bool { |
| 2782 | switch k { |
| 2783 | case "func", "orderasc", "orderdesc", "first", "offset", "after": |
| 2784 | return true |
| 2785 | case "from", "to", "numpaths", "minweight", "maxweight", "maxfrontiersize": |
| 2786 | // Specific to shortest path |
| 2787 | return true |
| 2788 | case "depth": |
| 2789 | return true |
| 2790 | } |
| 2791 | return false |
| 2792 | } |
| 2793 | |
| 2794 | // Check for validity of key at non-root nodes. |
| 2795 | func validKey(k string) bool { |