Versions in this module Expand all Collapse all v1 v1.0.1 Jan 26, 2020 Changes in this version + const PacketAPWelcome + const PacketAesKey + const PacketAesKeyError + const PacketAuthFailure + const PacketChannelAbort + const PacketChannelError + const PacketCountryCode + const PacketImage + const PacketLegacyWelcome + const PacketLicenseVersion + const PacketLogin + const PacketMercuryReq + const PacketMercurySub + const PacketMercuryUnsub + const PacketPause + const PacketPing + const PacketPong + const PacketPongAck + const PacketProductInfo + const PacketRequestKey + const PacketSecretBlock + const PacketStreamChunk + const PacketStreamChunkRes + type PacketStream interface + RecvPacket func() (cmd uint8, buf []byte, err error) + SendPacket func(cmd uint8, data []byte) (err error) + type PlainConnection struct + Reader io.Reader + Writer io.Writer + func MakePlainConnection(reader io.Reader, writer io.Writer) PlainConnection + func (p *PlainConnection) RecvPacket() (buf []byte, err error) + func (p *PlainConnection) SendPrefixPacket(prefix []byte, data []byte) (packet []byte, err error)