added stats page and password reset
This commit is contained in:
parent
621cc2a83e
commit
cabc3e94b4
55 changed files with 8094 additions and 4362 deletions
|
|
@ -10,6 +10,7 @@ const (
|
|||
SearchURI = "/search"
|
||||
LogsURI = "/logs"
|
||||
TagsURI = "/tags"
|
||||
StatsURI = "/stats"
|
||||
UserURI = "/user"
|
||||
|
||||
RawPrefix = "/raw"
|
||||
|
|
|
|||
|
|
@ -64,6 +64,14 @@ func (p Paths) Len() int { return len(p) }
|
|||
func (p Paths) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
|
||||
func (p Paths) Less(i, j int) bool { return p[i].Name < p[j].Name }
|
||||
|
||||
type Stats struct {
|
||||
Goroutines int
|
||||
Alloc string
|
||||
Sys string
|
||||
Docs uint64
|
||||
GoVersion string
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
RunDir string `json:"run_dir,omitempty"`
|
||||
DataDir string `json:"-"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue