dto

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

package dto defines the data structures used to exchange information

package dto defines the data structures used to exchange information

package dto defines the data structures used to exchange information

package dto defines the data structures used to exchange information

package dto defines the data structures used to exchange information

package dto defines the data structures used to exchange information

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CalCmsEntry

type CalCmsEntry struct {
	Title     string
	StartTime time.Time
	EndTime   time.Time
	Duration  time.Duration
	EventId   int
	Live      int
}

CalCmsEntry defines a subset of data from calCms used to describe a calCms event

type ConfigResp

type ConfigResp struct {
	ServerHost                 string
	ServerPort                 string
	ServerTlsPort              string
	ServerGracefulShutdownTime string
	ServerUseTls               string
	ServerCertFile             string
	ServerKeyFile              string
	GinMode                    string
	StartDate                  string
	RootFolder                 string
	FileExtensions             string
	AudioFileExtensions        string
	StreamFileExtensions       string
	StreamFileMapping          string
	CycleTime                  string
	ExportFolder               string
	AppendToPlayout            string
	ShortAllowance             string
	LongAllowance              string
	CrawlRunNumber             string
	LastCrawlDate              string
	FilesInList                string
	AudioFilesInList           string
	StreamFilesInList          string
	LastExportDate             string
	LastExportedFileDate       string
	LastExportFileName         string
	CrawlRunning               string
	ExportRunning              string
	CleanRunning               string
	LimitTime                  string
	LastCleanDate              string
	NextCrawlDate              string
	NextExportDate             string
	NextCleanDate              string
	FilesCleaned               string
	GenHashes                  string
	LastCalCmsState            string
	LastMairListCommState      string
	ExportDayEvents            string
	MairListPlayingState       string
	LogFile                    string
	QueryMairListStatus        string
}

ConfigResp converted configuration data for display on the web UI

func GetConfig

func GetConfig(cfg *config.AppConfig) (resp ConfigResp)

GetConfig converts the configuration to its display format

type Event added in v1.1.0

type Event struct {
	EventId         string `json:"event_id"`
	Title           string `json:"title"`
	StartDate       string `json:"start_date"`
	StartTime       string `json:"start_time"`
	EndTime         string `json:"end_time"`
	PlannedDuration string `json:"planned_duration"`
	ActualDuration  string `json:"actual_duration"`
	EventType       string `json:"event_type"`
	FileStatus      string `json:"file_status"`
}

Event defines the data used to display the day's events

type FileCounts

type FileCounts struct {
	TotalCount  int
	AudioCount  int
	StreamCount int
}

FileCounts structure to list counts of file types

type FileResp

type FileResp struct {
	Path           string
	ModTime        string
	Duration       string
	StartTime      string
	EndTime        string
	InfoExtracted  string
	ScanTime       string
	FolderDate     string
	RuleMatched    string
	EventId        string
	EventIdLink    string
	EventLinkAvail bool
	CalCmsInfo     string
	TechMd         string
}

FileResp defines the data to be displayed in the file list

func GetFiles

func GetFiles(repo *repositories.DefaultFileRepository, CmsUrl string) (fileDta []FileResp)

GetFiles retrives all files maintained in the repository and formats them for display purposes

type MairListRequest added in v1.3.0

type MairListRequest struct {
	ReqType  string
	FileName string
}

MairListRequest describes the request sent to mAirList There are 3 requests: Get On-Air Status, Append Playlist, Get Current Playlist ReqType = onair, appendpl, getpl For Append Playlist, a file name needs to be passed

type TechnicalMetadata

type TechnicalMetadata struct {
	DurationSec float64
	BitRate     int64
	FormatName  string
}

TechnicalMetadata defines the data retrived from ffprobe

Jump to

Keyboard shortcuts

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