mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-15 00:27:29 +08:00
refactor(api): move webui endpoints out of nodes and fix office state updates
This commit is contained in:
12
pkg/api/reload_unix.go
Normal file
12
pkg/api/reload_unix.go
Normal file
@@ -0,0 +1,12 @@
|
||||
//go:build !windows
|
||||
|
||||
package api
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func requestSelfReloadSignal() error {
|
||||
return syscall.Kill(os.Getpid(), syscall.SIGHUP)
|
||||
}
|
||||
8
pkg/api/reload_windows.go
Normal file
8
pkg/api/reload_windows.go
Normal file
@@ -0,0 +1,8 @@
|
||||
//go:build windows
|
||||
|
||||
package api
|
||||
|
||||
// requestSelfReloadSignal is a no-op on Windows (no SIGHUP semantics).
|
||||
func requestSelfReloadSignal() error {
|
||||
return nil
|
||||
}
|
||||
3245
pkg/api/server.go
Normal file
3245
pkg/api/server.go
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user