mysql

command
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 29, 2020 License: MIT Imports: 8 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL