Versions in this module Expand all Collapse all v1 v1.1.4 Dec 12, 2015 GO-2022-0550 GO-2022-0550: Off-by-one Error in v2fly/v2ray-core in github.com/v2fly/v2ray-core Changes in this version + var ErrorNoSuchCommand = errors.New("No such command.") + func RegisterResponseCommand(id byte, cmdFactory CommandCreator) error + type Command interface + Marshal func(io.Writer) (int, error) + Unmarshal func([]byte) error + func CreateResponseCommand(id byte) (Command, error) + type CommandCreator func() Command + type SwitchAccount struct + ID *uuid.UUID + ValidUntil time.Time + func (this *SwitchAccount) Marshal(writer io.Writer) (int, error) + func (this *SwitchAccount) Unmarshal(data []byte) error