Documentation ¶
Index ¶
Constants ¶
View Source
const PlayerSendPeerStatusInterval = time.Second * 5
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RawServerConfig ¶
type RawServerConfig struct { PlayerCredential *string `json:"adminCredential"` Participants []string `json:"participants"` AdminsRawNetworks []string `json:"adminsNetworks"` PeerConnectionConfig api.PeerConnectionConfig `json:"peerConnectionConfig"` GrabberPingInterval int `json:"grabberPingInterval"` ServerPort int `json:"serverPort"` ServerTLSCrtFile *string `json:"serverTLSCrtFile"` ServerTLSKeyFile *string `json:"serverTLSKeyFile"` }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(config ServerConfig, app *fiber.App) (*Server, error)
func (*Server) CheckPlayerCredential ¶
func (*Server) SetupWebSockets ¶
func (s *Server) SetupWebSockets()
type ServerConfig ¶
type ServerConfig struct { PlayerCredential *string `json:"adminCredential"` Participants []string `json:"participants"` AdminsRawNetworks []netip.Prefix `json:"adminsNetworks"` PeerConnectionConfig api.PeerConnectionConfig `json:"peerConnectionConfig"` GrabberPingInterval int `json:"grabberPingInterval"` ServerPort int `json:"serverPort"` ServerTLSCrtFile *string `json:"serverTLSCrtFile"` ServerTLSKeyFile *string `json:"serverTLSKeyFile"` }
func LoadServerConfig ¶
func LoadServerConfig() (ServerConfig, error)
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func NewStorage ¶
func NewStorage() *Storage
Click to show internal directories.
Click to hide internal directories.