Categorygithub.com/F0rzend/radiot_dumper
modulepackage
1.1.0
Repository: https://github.com/f0rzend/radiot_dumper.git
Documentation: pkg.go.dev

# README

Radio-T Dumper

A.K.A. Http copier, because you can use it with different sites, and it will successfully detect file type and download content.

In an endless loop with a break on delay (to avoid creating a heavy load on the target server), the application will wait for a OK 200 response, after which it will copy the response body into the generated file.

Features

  • File type detection (without losing bytes)
  • Waiting for broadcast availability
  • Delay for avoiding creating a heavy load on the target server
  • Automatic generation of human-readable file names
  • Unlimited number of files (Limited by disk space)
  • Unit tests

Configuration

You can use dumper.yml file or environment variables for configuration.

ymlenvdefaultdescription
source_urlSOURCE_URLAddress from where to download information
file_prefixFILE_PREFIXPrefix for files
scheduleSCHEDULESchedule for downloading information in cron format
durationDURATIONDuration of the dump
delayDELAY5sDelay between request in case of interruption of the stream
file_date_formatFILE_DATE_FORMAT02_01_2006Date format for files
output_directoryOUTPUT_DIRECTORY.Directory where to save files
log_levelLOG_LEVELinfoLog level

Run with docker compose

Before starting the application, you can change output directory volume in docker-compose.yml file from ./records to your desired directory. In container all files will be in the /tmp/output directory.

To start the application, run:

docker-compose up -d

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author