SwitchAccount command

This commit is contained in:
v2ray
2015-12-12 13:11:49 +01:00
parent 47f35b1c3e
commit fed5697dc3
10 changed files with 196 additions and 9 deletions
+17
View File
@@ -0,0 +1,17 @@
package command
import (
"errors"
"io"
)
var (
ErrorNoSuchCommand = errors.New("No such command.")
)
type Command interface {
Marshal(io.Writer) (int, error)
Unmarshal([]byte) error
}
type CommandCreator func() Command