fix: remove terminal module and implement concurrent log stream limiting
build-and-release / release (push) Successful in 2m39s

This commit is contained in:
2026-06-24 17:29:45 +02:00
parent 37e5b97507
commit 54108c263f
40 changed files with 851 additions and 806 deletions
+11 -3
View File
@@ -8,9 +8,17 @@ import (
const ModuleID = "users"
type Module struct{}
// sessionStore is the subset of SessionStore that password changes need:
// invalidate all existing sessions for a user whose password just changed.
type sessionStore interface {
DeleteByUsername(username string) error
}
func New() *Module { return &Module{} }
type Module struct {
sessions sessionStore
}
func New(sessions sessionStore) *Module { return &Module{sessions: sessions} }
func (m *Module) ID() string { return ModuleID }
@@ -21,7 +29,7 @@ func (m *Module) Permissions() []rbac.Permission {
}
func (m *Module) Register(api huma.API) {
registerUsers(api)
registerUsers(api, m.sessions)
}
func op(permission string) map[string]any {