Application controller plane for xplex
What it does:
- Manage user auth and user records.
 - Manage streaming configurations per user.
 - Authenticate incoming media streams and hands out config.
 - Send out user notifications - email, social media etc.
 - Manage rate limiting and auditing of user streams in edge clusters. Disconnect when beyond quota.
 
- Install Golang 1.9+
 - Install dep
 
In project root, run:
$ dep ensureCompile debug builds using build.sh:
$ ./build.sh devCompile static binaries for release profile:
$ ./build.sh releaseCompiled binaries are put in ./bin/.
Migrations are run using golang-migrate/migrate. ./build.sh script has a migrate command which downloads and calls the migrate CLI.
First, set the DATABASE_URL environment variable with the Postgres database URL:
export DATABASE_URL="postgres://user:name@host/db"Then, run the migrations:
$ ./build.sh migrate upThis will install the migrate CLI if it doesn't exist in ./bin/migrate and run the up migrations.
Undo all migrations:
$ ./build.sh migrate downRun specific number of migrations up or down, e.g. for 1 migration:
$ ./build.sh migrate up 1
$ ./build.sh migrate down 1