mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-09 03:37:37 -05:00
18 lines
215 B
Go
18 lines
215 B
Go
package command
|
|
|
|
import (
|
|
"errors"
|
|
"io"
|
|
)
|
|
|
|
var (
|
|
ErrorNoSuchCommand = errors.New("No such command.")
|
|
)
|
|
|
|
type Command interface {
|
|
Marshal(io.Writer)
|
|
Unmarshal([]byte) error
|
|
}
|
|
|
|
type CommandCreator func() Command
|