GetTopChannels returns a slice of top channel's ChannelMetric, along with a boolean indicating whether there's more top channels to be queried for. The arg id specifies that only top channel with id at or above it will be included in the result. The returned slice is up to a length of the arg maxRe
(id int64, maxResults int)
| 63 | // maxResults or EntriesPerPage if maxResults is zero, and is sorted in ascending |
| 64 | // id order. |
| 65 | func GetTopChannels(id int64, maxResults int) ([]*Channel, bool) { |
| 66 | return db.getTopChannels(id, maxResults) |
| 67 | } |
| 68 | |
| 69 | // GetServers returns a slice of server's ServerMetric, along with a |
| 70 | // boolean indicating whether there's more servers to be queried for. |