Manifiesta MySQL
File Manifest Server in Go, backed by MySQL
Setup Your Tables
Run the script at https://github.com/Archnoc/manifiesta/blob/master/cmd/mysql/setup_manifest.sql to initialize your sql tables.
Environment Variables
Manifiesta will read the .env file in your application folder on startup and assign environment variables.
PORT
Port to listen on for http requests, must begin with ":".
CERT_FILE
Path to cert file, required for TLS.
KEY_FILE
Path to key file, required for TLS.
MYSQL_CON_STRING
Connection string to MySQL, (for example: user:password@tcp(127.0.0.1:3306)/db_name, See https://github.com/go-sql-driver/mysql#dsn-data-source-name)
Resource Paths
GET /manifest/{name}
Returns the entire manifest.
GET /manifests/metadata
Returns the metadata of all available manifests.
GET /manifest/{name}/metadata
Returns the metadata of the manifest.
GET /manifests/{name}/files
Returns all files associated with the manifest.
GET /manifests/{name}/files/{index}
Returns a detailed view of the file.