Documentation
¶
Index ¶
- Constants
- func ConfigureLogging()
- func ConvertToChannelConfig(cfg ChannelMap) *messaging.ChannelConfig
- func LoadConfig() error
- func SaveConfigIfRequested()
- func SetupFlags()
- type ApiMap
- type ChannelMap
- type ChannelsCollection
- type ConfigMap
- type FfmpegMap
- type HttpMap
- type InputMap
- type LogMap
- type OutputMap
- type PrometheusMap
- type RabbitMqMap
- type SliceMap
- type TaskMap
Constants ¶
View Source
const ( RoleShovel = "shovel" RoleCompute = "compute" LogLevelDebug = "debug" LogLevelInfo = "info" LogLevelWarn = "warn" LogLevelError = "error" LogLevelFatal = "fatal" LogFormatterText = "text" LogFormatterJson = "json" ApiFfmpegDebugNone = "none" ApiFfmpegDebugLog = "to-log" ApiFfmpegDebugOut = "to-out" ApiFfmpegProtocolUnix = "unix" )
Variables ¶
This section is empty.
Functions ¶
func ConfigureLogging ¶
func ConfigureLogging()
func ConvertToChannelConfig ¶
func ConvertToChannelConfig(cfg ChannelMap) *messaging.ChannelConfig
func LoadConfig ¶
func LoadConfig() error
func SaveConfigIfRequested ¶
func SaveConfigIfRequested()
func SetupFlags ¶
func SetupFlags()
Types ¶
type ChannelMap ¶
type ChannelMap struct {
Queue messaging.QueueOptions
Exchange messaging.ExchangeOptions
Qos messaging.QosOptions
}
type ChannelsCollection ¶
type ConfigMap ¶
type ConfigMap struct {
Log LogMap
RabbitMq RabbitMqMap
Api ApiMap
Input InputMap
Output OutputMap
Prometheus PrometheusMap
Role string
}
func CreateDefaultConfig ¶
func CreateDefaultConfig() ConfigMap
type PrometheusMap ¶
type RabbitMqMap ¶
type RabbitMqMap struct {
Url string
Channels ChannelsCollection
}
type SliceMap ¶
type SliceMap struct {
Added ChannelMap
Completed ChannelMap
}
type TaskMap ¶
type TaskMap struct {
Added ChannelMap
Completed ChannelMap
Cancelled ChannelMap
}
Click to show internal directories.
Click to hide internal directories.