mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
16 lines
268 B
Go
16 lines
268 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
|
|
}
|