mirror of
https://github.com/fankes/beszel.git
synced 2025-10-20 02:09:28 +08:00
rename package user to users
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
// Package hub handles updating systems and serving the web UI.
|
||||||
package hub
|
package hub
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -5,7 +6,7 @@ import (
|
|||||||
"beszel/internal/alerts"
|
"beszel/internal/alerts"
|
||||||
"beszel/internal/entities/system"
|
"beszel/internal/entities/system"
|
||||||
"beszel/internal/records"
|
"beszel/internal/records"
|
||||||
"beszel/internal/user"
|
"beszel/internal/users"
|
||||||
"beszel/site"
|
"beszel/site"
|
||||||
"context"
|
"context"
|
||||||
"crypto/ed25519"
|
"crypto/ed25519"
|
||||||
@@ -51,7 +52,7 @@ func NewHub(app *pocketbase.PocketBase) *Hub {
|
|||||||
func (h *Hub) Run() {
|
func (h *Hub) Run() {
|
||||||
rm := records.NewRecordManager(h.app)
|
rm := records.NewRecordManager(h.app)
|
||||||
am := alerts.NewAlertManager(h.app)
|
am := alerts.NewAlertManager(h.app)
|
||||||
um := user.NewUserManager(h.app)
|
um := users.NewUserManager(h.app)
|
||||||
|
|
||||||
// loosely check if it was executed using "go run"
|
// loosely check if it was executed using "go run"
|
||||||
isGoRun := strings.HasPrefix(os.Args[0], os.TempDir())
|
isGoRun := strings.HasPrefix(os.Args[0], os.TempDir())
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
package user
|
// Package user handles user-related custom functionality.
|
||||||
|
package users
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
Reference in New Issue
Block a user