1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-23 10:37:09 -05:00
v2fly/proxy/vmess/command/command.go
2015-12-12 13:11:49 +01:00

18 lines
228 B
Go

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