mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-21 04:52:35 +02:00
17 lines
270 B
Go
17 lines
270 B
Go
package main
|
|
|
|
const (
|
|
CommandStart = ""
|
|
CommandNewClient = "new-client"
|
|
)
|
|
|
|
type agentCommandValidator struct{}
|
|
|
|
func (v agentCommandValidator) IsCommandValid(cmd string) bool {
|
|
switch cmd {
|
|
case CommandStart,
|
|
CommandNewClient:
|
|
return true
|
|
}
|
|
return false
|
|
}
|