Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdentityPacket ¶
type IdentityPacket struct { PacketHeader Identity string }
func (*IdentityPacket) Encode ¶
func (p *IdentityPacket) Encode() []byte
func (*IdentityPacket) String ¶
func (p *IdentityPacket) String() string
type LegacyNakPacket ¶
type LegacyNakPacket struct { PacketHeader DesiredAuthType Type }
func (*LegacyNakPacket) Encode ¶
func (p *LegacyNakPacket) Encode() []byte
func (*LegacyNakPacket) String ¶
func (p *LegacyNakPacket) String() string
type MSCHAPV2Packet ¶
type MSCHAPV2Packet struct { PacketHeader MSCHAPV2 MSCHAPV2.Packet }
func (*MSCHAPV2Packet) Encode ¶
func (p *MSCHAPV2Packet) Encode() []byte
func (*MSCHAPV2Packet) String ¶
func (p *MSCHAPV2Packet) String() string
type Packet ¶
type Packet interface { Header() *PacketHeader String() string Encode() []byte }
type PacketHeader ¶
type PacketHeader struct { Code Code Identifier uint8 Type Type //success and failure do not have any type }
func (*PacketHeader) Header ¶
func (h *PacketHeader) Header() *PacketHeader
func (*PacketHeader) String ¶
func (h *PacketHeader) String() string
type SimplePacket ¶
type SimplePacket struct {
PacketHeader
}
only put code identifier
func (*SimplePacket) Encode ¶
func (p *SimplePacket) Encode() (b []byte)
func (*SimplePacket) String ¶
func (p *SimplePacket) String() string
Click to show internal directories.
Click to hide internal directories.