vchat

package module
v0.0.0-...-618cb95 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 4 Imported by: 0

README

chat-resque

Client / server communication in Go language

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) ReadFrom

func (a *AudioFrame) ReadFrom(r io.Reader) (int64, error)

func (*AudioFrame) UnmarshalBinary

func (a *AudioFrame) UnmarshalBinary(data []byte) error

func (*AudioFrame) WriteTo

func (a *AudioFrame) WriteTo(w io.Writer) (int64, error)

type Packet

type Packet struct {
	Type        PacketType
	ClientID    uuid.UUID
	AudioFrames []AudioFrame
}

func (*Packet) BinarySize

func (p *Packet) BinarySize() int

func (*Packet) MarshalBinary

func (p *Packet) MarshalBinary() ([]byte, error)

func (*Packet) ReadFrom

func (p *Packet) ReadFrom(r io.Reader) (int64, error)

func (*Packet) UnmarshalBinary

func (p *Packet) UnmarshalBinary(data []byte) error

func (*Packet) WriteTo

func (p *Packet) WriteTo(w io.Writer) (int64, error)

type PacketType

type PacketType uint8
const (
	PacketJoin PacketType = iota + 1
	PacketLeave
	PacketAudio
)

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL