Skip to content
This repository was archived by the owner on Mar 4, 2022. It is now read-only.
This repository was archived by the owner on Mar 4, 2022. It is now read-only.

config #1

@and-cesbo

Description

@and-cesbo
  • load config
  • reload config - means, loading config to the new structure and comparing with active configuration
  • catch signal HUP (kill -1) with tokio and reload configuration
  • path to configuration file can be defined in the first argument. If path is not defined default path should be /etc/tsplay.conf

Components:

Example format:

{
    "stream": [
        {
            "name": "Optional name",
            "input": {
                "type": "file",
                "path": "/mnt/sda1/file.ts"
            },
            "output": {
                "type": "udp",
                "address": "127.0.0.1",
                "port": 10000
            }
        }
    ]
}

Hints:

  • use #[serde(tag = "type")] for Input/Output enum's

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions