Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AudioFrame ¶
type AudioFrame struct {
Data []byte
}
func (*AudioFrame) BinarySize ¶
func (a *AudioFrame) BinarySize() int
func (*AudioFrame) MarshalBinary ¶
func (a *AudioFrame) MarshalBinary() ([]byte, error)
func (*AudioFrame) UnmarshalBinary ¶
func (a *AudioFrame) UnmarshalBinary(data []byte) error
type Packet ¶
type Packet struct {
Type PacketType
ClientID uuid.UUID
AudioFrames []AudioFrame
}
func (*Packet) BinarySize ¶
func (*Packet) MarshalBinary ¶
func (*Packet) UnmarshalBinary ¶
type PacketType ¶
type PacketType uint8
const ( PacketJoin PacketType = iota + 1 PacketLeave PacketAudio )
Click to show internal directories.
Click to hide internal directories.