config

package
v0.0.0-...-a537e16 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DiscordCommandPrefix       string
	DiscordBotToken            string
	RestEnabled                bool
	RestGinRelease             bool
	RestHostname               string
	DcaFrameDuration           int
	DcaBitrate                 int
	DcaPacketLoss              int
	DcaRawOutput               bool
	DcaApplication             dca.AudioApplication
	DcaCompressionLevel        int
	DcaBufferedFrames          int
	DcaVBR                     bool
	DcaReconnectAtEOF          int // boolean value passed to Ffmpeg is treated as int (1 - true, 0 - false)
	DcaReconnectStreamed       int // boolean value passed to Ffmpeg is treated as int (1 - true, 0 - false)
	DcaReconnectOnNetworkError int // boolean value passed to Ffmpeg is treated as int (1 - true, 0 - false)
	DcaReconnectOnHttpError    string
	DcaReconnectDelayMax       int
	DcaFfmpegBinaryPath        string
	DcaEncodingLineLog         bool
	DcaUserAgent               string
}

func NewConfig

func NewConfig() (*Config, error)

NewConfig creates a new Config object and returns it along with any error encountered.

No parameters. Returns *Config and error.

func (*Config) String

func (c *Config) String() string

String returns the JSON representation of the Config struct.

No parameters. Returns a string.

Jump to

Keyboard shortcuts

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