Upload Service

This service represents the metadata for the uploaded media assets. It also exposes an upload endpoint, for uploading the assets themselves.

This service is backed by a Postgres database (upload_service), and table (media).

Database Migrations

This service uses Postgres as it's core database. You can run migrations using:

Create a migration

$ make migrate.create name="my_new_migration"

Migrate up

$ make migrate.local.up

Migrate production/staging database

$ make migrate.proxy.up password=<database-password>

Protobuf definition

This service exposes a gRPC + Protobuf server, for certain endpoints/functions. You

The protobuf definition can be found in ./proto, you can re-build the protobuf definitions $ make build.proto.

Internal gRPC Endpoints

ListMedia(ListMediaRequest) ListMediaResponse
GetMedia(GetMediaRequest) GetMediaResponse

Last updated