config

package
v0.0.0-...-6136325 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig

func SaveConfig(fileName string, cfg Config)

SaveConfig to FileName

Types

type Config

type Config struct {
	LogLevel string
	DataBase *DataBaseConfig
	Web      *WebConfig
	Media    *MediaConfig
	WebRTC   *WebRtcConfig
}

Config Struct

func GetDefaultConfig

func GetDefaultConfig() Config

GetDefaultConfig Func

func LoadConfig

func LoadConfig(fileName string) *Config

LoadConfig from FileName

func LoadOrCreateConfig

func LoadOrCreateConfig(fileName string) *Config

LoadOrCreateConfig with Default Values

func (*Config) GetLogLevel

func (c *Config) GetLogLevel() logrus.Level

GetLogLevel from Config

type DataBaseConfig

type DataBaseConfig struct {
	Driver           string
	ConncetionString string
}

DataBaseConfig Struct

type MediaAudioConfig

type MediaAudioConfig struct {
	Enabled bool
}

MediaAudioConfig Struct

type MediaConfig

type MediaConfig struct {
	Video *MediaVideoConfig
	Audio *MediaAudioConfig
}

MediaConfig Struct

type MediaVideoCodecConfig

type MediaVideoCodecConfig struct {
	VP8  bool
	VP9  bool
	H264 bool
}

MediaVideoCodecConfig Struct

type MediaVideoConfig

type MediaVideoConfig struct {
	Enabled     bool
	Codecs      *MediaVideoCodecConfig
	VideoSize   int
	VideoBorder int
}

MediaVideoConfig Struct

func (*MediaVideoConfig) GetFullSize

func (mvc *MediaVideoConfig) GetFullSize() int

GetFullSize get the full Video Size

type WebConfig

type WebConfig struct {
	HTTPBind   string
	API        bool
	App        bool
	SessionKey string
	CsrfKey    string
}

WebConfig Struct

func (*WebConfig) GetCsrfKey

func (w *WebConfig) GetCsrfKey() ([]byte, error)

GetCsrfKey from Config

func (*WebConfig) GetSessionKey

func (w *WebConfig) GetSessionKey() ([]byte, error)

GetSessionKey from Config

type WebRtcConfig

type WebRtcConfig struct {
	ICEServers []string
}

WebRtcConfig Struct

Jump to

Keyboard shortcuts

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