config

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capture

type Capture struct {
	Display string

	VideoCodec     codec.RTPCodec
	VideoIDs       []string
	VideoPipelines map[string]types.VideoConfig

	AudioDevice   string
	AudioCodec    codec.RTPCodec
	AudioPipeline string

	BroadcastAudioBitrate int
	BroadcastVideoBitrate int
	BroadcastPreset       string
	BroadcastPipeline     string
	BroadcastUrl          string

	ScreencastEnabled  bool
	ScreencastRate     string
	ScreencastQuality  string
	ScreencastPipeline string

	WebcamEnabled bool
	WebcamDevice  string
	WebcamWidth   int
	WebcamHeight  int

	MicrophoneEnabled bool
	MicrophoneDevice  string
}

func (Capture) Init

func (Capture) Init(cmd *cobra.Command) error

func (*Capture) Set

func (s *Capture) Set()

type Config

type Config interface {
	Init(cmd *cobra.Command) error
	Set()
}

type Desktop

type Desktop struct {
	Display string

	ScreenWidth  int
	ScreenHeight int
	ScreenRate   int16
}

func (Desktop) Init

func (Desktop) Init(cmd *cobra.Command) error

func (*Desktop) Set

func (s *Desktop) Set()

type Member

type Member struct {
	Provider string

	// providers
	File      file.Config
	Object    object.Config
	Multiuser multiuser.Config
}

func (Member) Init

func (Member) Init(cmd *cobra.Command) error

func (*Member) Set

func (s *Member) Set()

type Plugins

type Plugins struct {
	Enabled bool
	Dir     string
}

func (Plugins) Init

func (Plugins) Init(cmd *cobra.Command) error

func (*Plugins) Set

func (s *Plugins) Set()

type Root

type Root struct {
	Config string

	LogLevel   zerolog.Level
	LogTime    string
	LogJson    bool
	LogNocolor bool
	LogDir     string
}

func (Root) Init

func (Root) Init(cmd *cobra.Command) error

func (*Root) Set

func (s *Root) Set()

type Server

type Server struct {
	Cert    string
	Key     string
	Bind    string
	Static  string
	PProf   bool
	Metrics bool
	CORS    []string
}

func (*Server) AllowOrigin

func (s *Server) AllowOrigin(origin string) bool

func (Server) Init

func (Server) Init(cmd *cobra.Command) error

func (*Server) Set

func (s *Server) Set()

type Session

type Session struct {
	File string

	ImplicitHosting   bool
	InactiveCursors   bool
	MercifulReconnect bool
	APIToken          string

	CookieEnabled    bool
	CookieName       string
	CookieExpiration time.Duration
	CookieSecure     bool
}

func (Session) Init

func (Session) Init(cmd *cobra.Command) error

func (*Session) Set

func (s *Session) Set()

type WebRTC

type WebRTC struct {
	ICELite            bool
	ICETrickle         bool
	ICEServersFrontend []types.ICEServer
	ICEServersBackend  []types.ICEServer
	EphemeralMin       uint16
	EphemeralMax       uint16
	TCPMux             int
	UDPMux             int

	NAT1To1IPs     []string
	IpRetrievalUrl string

	EstimatorEnabled        bool
	EstimatorPassive        bool
	EstimatorInitialBitrate int
}

func (WebRTC) Init

func (WebRTC) Init(cmd *cobra.Command) error

func (*WebRTC) Set

func (s *WebRTC) Set()

Jump to

Keyboard shortcuts

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