bump copyright, added stats page and updated dependencies

This commit is contained in:
ston1th 2020-01-11 11:32:27 +01:00
commit 0265d820fe
111 changed files with 9556 additions and 3835 deletions

View file

@ -1,4 +1,4 @@
// Copyright (C) 2019 Marius Schellenberger
// Copyright (C) 2020 Marius Schellenberger
package core
@ -8,10 +8,20 @@ const (
IndexURI = WikiSection + "/" + IndexPage
LoginURI = "/login"
LogoutURI = "/logout"
TotpURI = "/totp"
SectionsURI = "/sections"
RootURI = "/"
WikiURI = "/wiki"
LoginURI = "/login"
LogoutURI = "/logout"
TotpURI = "/totp"
SectionsURI = "/sections"
SectionURI = "/section"
SearchURI = "/search"
StatsURI = "/stats"
NewURI = "/new"
BlacklistURI = "/blacklist"
UsersURI = "/users"
UserURI = "/user"
ViewURI = "/view"
BootstrapCSS = "/bootstrap.css"
CustomCSS = "/custom.css"

View file

@ -1,4 +1,4 @@
// Copyright (C) 2019 Marius Schellenberger
// Copyright (C) 2020 Marius Schellenberger
package core

View file

@ -1,4 +1,4 @@
// Copyright (C) 2019 Marius Schellenberger
// Copyright (C) 2020 Marius Schellenberger
package core

View file

@ -1,4 +1,4 @@
// Copyright (C) 2019 Marius Schellenberger
// Copyright (C) 2020 Marius Schellenberger
package core
@ -72,6 +72,14 @@ type Result struct {
HTML template.HTML
}
type Stats struct {
Goroutines int
Alloc string
Sys string
Docs uint64
GoVersion string
}
type Config struct {
DataDir string `json:"data_dir,omitempty"`
User string `json:"user,omitempty"`