Adding some basic start up for the ingest runner
This commit is contained in:
parent
cc7eeaffde
commit
46cf28de82
2
LICENSE
2
LICENSE
@ -1,4 +1,4 @@
|
||||
Copyright (c) 2024 BitGoblin
|
||||
Copyright (c) 2024 Bit Goblin
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
# Siren
|
||||
|
||||
Automated video ingester and transcoder service
|
||||
Automated video ingester and transcoder service
|
||||
|
||||
## Dependencies
|
||||
|
||||
Requires PHP version `7.4` or newer.
|
||||
|
27
composer.json
Normal file
27
composer.json
Normal file
@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "bitgoblin/siren",
|
||||
"description": "Self-hosted video ingest and transcoder service.",
|
||||
"type": "project",
|
||||
"license": "BSD-2-Clause",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"BitGoblin\\Siren\\": "src/"
|
||||
}
|
||||
},
|
||||
"authors": [
|
||||
{
|
||||
"name": "Gregory Ballantine",
|
||||
"email": "gballantine@bitgoblin.tech"
|
||||
}
|
||||
],
|
||||
"minimum-stability": "stable",
|
||||
"require": {
|
||||
"slim/slim": "^4.13",
|
||||
"slim/psr7": "^1.6",
|
||||
"php-di/php-di": "^6.4",
|
||||
"hassankhan/config": "^3.0"
|
||||
},
|
||||
"scripts": {
|
||||
"phinx": "./vendor/bin/phinx"
|
||||
}
|
||||
}
|
16
src/Runner/IngestRunner.php
Normal file
16
src/Runner/IngestRunner.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace BitGoblin\Siren\Runner;
|
||||
|
||||
class IngestRunner implements Runner {
|
||||
|
||||
public function start() {
|
||||
print "Starting the ingest service...";
|
||||
|
||||
for ($i = 0; i < 10; i++) {
|
||||
print "Loop number $i";
|
||||
sleep(2);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
9
src/Runner/Runner.php
Normal file
9
src/Runner/Runner.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
namespace BitGoblin\Siren\Runner;
|
||||
|
||||
interface Runner {
|
||||
|
||||
public function start();
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user