v2ray-core/proxy/vmess/command/command.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