1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/proxy/vmess/command/command.go

18 lines
215 B
Go
Raw Normal View History

2015-12-12 07:11:49 -05:00
package command
import (
"errors"
"io"
)
var (
ErrorNoSuchCommand = errors.New("No such command.")
)
type Command interface {
2016-01-19 17:41:40 -05:00
Marshal(io.Writer)
2015-12-12 07:11:49 -05:00
Unmarshal([]byte) error
}
type CommandCreator func() Command