sfu

package
v0.0.0-...-4c68550 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateServerConfig

func ValidateServerConfig(config *ServerConfig, env *ServerEnv) error

Types

type Config

type Config struct {
	*ServerConfig              `mapstructure:"server"`
	*auth.SecurityConfig       `mapstructure:"security"`
	*storage.StorageConfig     `mapstructure:"store"`
	*logging.LogConfig         `mapstructure:"log"`
	*metric.MetricConfig       `mapstructure:"metric"`
	*telemetry.TelemetryConfig `mapstructure:"telemetry"`
	*rtp.RtpConfig             `mapstructure:"rtp"`
	*instance.FederationConfig `mapstructure:"federation"`
}

type Environment

type Environment struct {
	ServerEnv
	instance.FederationEnv
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, config *Config) (*Server, error)

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

type ServerConfig

type ServerConfig struct {
	Host string `mapstructure:"host"`
	Port int    `mapstructure:"port"`
}

type ServerEnv

type ServerEnv struct {
	Port int
}

Jump to

Keyboard shortcuts

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