mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-11-16 14:54:23 +08:00
perf(nodes): paginate node lists and fetch details directly (#54)
* perf(nodes): paginate node lists and fetch details directly * fix(nodes): preserve Unicode search and page transition state * fix(nodes): validate search using the UTF-8 byte limit
This commit is contained in:
@@ -50,3 +50,13 @@ type OpenFlareNode struct {
|
||||
func (OpenFlareNode) TableName() string {
|
||||
return "of_nodes"
|
||||
}
|
||||
|
||||
// OpenFlareNodeListQuery describes a bounded node query.
|
||||
type OpenFlareNodeListQuery struct {
|
||||
Page int
|
||||
PageSize int
|
||||
Search string
|
||||
Status string
|
||||
NodeType string
|
||||
Now time.Time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user