stream

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(log *slog.Logger, disco discovery.Manager, tokens *serviceauth.TokenManager, cache cache.Cache, mqt mq.SendTransporter, pstore *presence.Store, nats *natsio.Conn) server.Entity

Types

type AliveRequest

type AliveRequest struct {
	StreamID    int64  `json:"stream_id"`
	ChannelID   int64  `json:"channel_id"`
	OwnerUserID int64  `json:"owner_user_id,omitempty"`
	RouteID     string `json:"route_id,omitempty"`
	RouteURL    string `json:"route_url,omitempty"`
	Region      string `json:"region,omitempty"`
}

func (AliveRequest) Validate

func (r AliveRequest) Validate() error

type HeartbeatRequest

type HeartbeatRequest struct {
	ID     string `json:"id"`
	Region string `json:"region"`
	URL    string `json:"url"`
	Load   int64  `json:"load"`
}

func (HeartbeatRequest) Validate

func (r HeartbeatRequest) Validate() error

type StartRequest

type StartRequest struct {
	StreamID           int64  `json:"stream_id"`
	ChannelID          int64  `json:"channel_id"`
	GuildID            int64  `json:"guild_id"`
	OwnerUserID        int64  `json:"owner_user_id"`
	SourceType         string `json:"source_type"`
	AudioMode          string `json:"audio_mode"`
	StartedAt          int64  `json:"started_at,omitempty"`
	RouteID            string `json:"route_id"`
	RouteURL           string `json:"route_url"`
	Region             string `json:"region,omitempty"`
	PublisherSessionID string `json:"publisher_session_id,omitempty"`
}

func (StartRequest) Validate

func (r StartRequest) Validate() error

type StopRequest

type StopRequest struct {
	StreamID           int64  `json:"stream_id"`
	ChannelID          int64  `json:"channel_id"`
	GuildID            int64  `json:"guild_id"`
	OwnerUserID        int64  `json:"owner_user_id"`
	PublisherSessionID string `json:"publisher_session_id,omitempty"`
	Reason             string `json:"reason,omitempty"`
}

func (StopRequest) Validate

func (r StopRequest) Validate() error

Jump to

Keyboard shortcuts

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