added stats page and password reset

This commit is contained in:
ston1th 2019-11-24 12:25:19 +01:00
commit cabc3e94b4
55 changed files with 8094 additions and 4362 deletions

View file

@ -10,6 +10,7 @@ const (
SearchURI = "/search"
LogsURI = "/logs"
TagsURI = "/tags"
StatsURI = "/stats"
UserURI = "/user"
RawPrefix = "/raw"

View file

@ -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:"-"`