chore(internal/controller): split command processor from pipes as an individual module
This commit is contained in:
1 parent
10c3727b01
commit
30ed0bd9ec
7 files changed
+356
-461
No files matched your search
@@ -31,12 +31,6 @@ type Controller interface {
|
||||
SendExecuteResult(serverName, serverUUID, command, result string) error
|
||||
}
|
||||
|
||||
// CommandController extends Controller for bidirectional channels (QQ, Telegram).
|
||||
type CommandController interface {
|
||||
Controller
|
||||
HandleCommand(cmd Command) (response string, err error)
|
||||
}
|
||||
|
||||
// Manager manages all controller instances and routes events.
|
||||
type Manager struct {
|
||||
mu sync.RWMutex
|
||||
|
||||
Reference in new issue
Block a user