Documentation ¶
Index ¶
- Variables
- type Parrot
- func (p *Parrot) GetStream(ctx context.Context, streamID uint) []models.Packet
- func (p *Parrot) IsStarted(ctx context.Context, streamID uint) bool
- func (p *Parrot) RecordPacket(ctx context.Context, streamID uint, packet models.Packet)
- func (p *Parrot) StartStream(ctx context.Context, streamID uint, repeaterID uint) bool
- func (p *Parrot) StopStream(ctx context.Context, streamID uint)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Parrot ¶
type Parrot struct {
Redis redisParrotStorage
}
Parrot is a struct that stores packets and repeats them back to the repeater.
func NewParrot ¶
func NewParrot(redis *redis.Client) *Parrot
NewParrot creates a new parrot instance.
func (*Parrot) RecordPacket ¶
RecordPacket records a packet from the stream.
func (*Parrot) StartStream ¶
StartStream starts a new stream.
Click to show internal directories.
Click to hide internal directories.