mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-14 19:37:31 +08:00
add gateway token-based node registration over host:port and shared nodes manager
This commit is contained in:
@@ -16,6 +16,10 @@ type Manager struct {
|
||||
handlers map[string]Handler
|
||||
}
|
||||
|
||||
var defaultManager = NewManager()
|
||||
|
||||
func DefaultManager() *Manager { return defaultManager }
|
||||
|
||||
func NewManager() *Manager {
|
||||
return &Manager{nodes: map[string]NodeInfo{}, handlers: map[string]Handler{}}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user