mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-08-07 15:40:37 -04:00
SwitchAccount command
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user