Documentation ¶
Index ¶
Constants ¶
View Source
const SessionCookieName string = "session"
View Source
const SessionLifeTime = time.Minute * 15
Variables ¶
View Source
var CommitHash = func() string { if info, ok := debug.ReadBuildInfo(); ok { for _, setting := range info.Settings { if setting.Key == "vcs.revision" { return setting.Value } } } return "asd" }()
Functions ¶
func CleanupSessions ¶
func CleanupSessions(stop chan struct{})
func ExtendSession ¶
func ExtendSession(s *Session)
func GenerateSession ¶
func GenerateSession(w http.ResponseWriter, username string)
Types ¶
type SessionResponse ¶
type SessionResponse struct {
CommitHash string `json:"commit_hash"`
}
Click to show internal directories.
Click to hide internal directories.