Add devweb support for auto-reloading webapp.

This commit is contained in:
2014-04-12 15:31:53 -07:00
parent 14bd95851c
commit 803913523e
4 changed files with 132 additions and 16 deletions

View File

@@ -223,3 +223,20 @@ VALUES
}
return nil
}
var MagicAllLabel = "[all]"
type Paginator struct {
Label string
Offset int
Count int
}
// Index returns ranges of metadata for messages as defined by paginator.
func (c *Conn) Index(p *Paginator) error {
if p.Label == MagicAllLabel {
// Paginate all messages.
}
// Else, filter by label.
return nil
}