sfu

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 15 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 *auth.TokenManager, cache cache.Cache, mqt mq.SendTransporter) server.Entity

Types

type ChannelAlive

type ChannelAlive struct {
	ChannelId int64  `json:"channel_id"`
	GuildId   *int64 `json:"guild_id,omitempty"`
}

func (ChannelAlive) Validate

func (r ChannelAlive) Validate() error

type ChannelUserJoin

type ChannelUserJoin struct {
	ChannelId int64  `json:"channel_id"`
	UserId    int64  `json:"user_id"`
	GuildId   *int64 `json:"guild_id,omitempty"`
}

func (ChannelUserJoin) Validate

func (r ChannelUserJoin) Validate() error

type ChannelUserLeave

type ChannelUserLeave struct {
	ChannelId int64  `json:"channel_id"`
	UserId    int64  `json:"user_id"`
	GuildId   *int64 `json:"guild_id,omitempty"`
}

func (ChannelUserLeave) Validate

func (r ChannelUserLeave) 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

Jump to

Keyboard shortcuts

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