You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
v2ray-core/proxy/vmess/command/command.go

18 lines
215 B

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