This application is responsible to for create thumbnail for images and videos uploaded to minio ...
This is a "microservice" application intended to be part of a microservice architecture.
To start your application in the dev profile, run:
go run cmd/main.go
To build the final runnable application, run:
go build -o minion cmd/main.go
To check service health status use following link:
/api/v1/health
curl -XGET http://127.0.0.1:8080/api/v1/health
## response
{
"ok" : true
}
To check service info use following link:
/api/v1/info
curl -XGET http://127.0.0.1:8080/api/v1/info
##response
{
"desc":"Thumbnailer for images and videos uploaded to minio",
"name":"Minion",
"tech-used":"go 1.17",
"version":"1.0.0"
}
/metrics
curl -XGET http://127.0.0.1:8080/metrics
##### Log
- MINION_LOG_LEVEL: 0
##### Server
- MINION_SERVER_ADDR: 127.0.0.1:8080
- MINION_SERVER_CERT: cert.pem
- MINION_SERVER_KEY: key.pem
##### Minio
- MINION_MINIO_ENDPOINT: 127.0.0.1
- MINION_MINIO_ACCESSKEYID: minion
- MINION_MINIO_SECRETACCESSKEY: minion
- MINION_MINIO_USESSL: false
##### Observability
- MINION_OBSERVABILITY_PROMETHEUS_ENABLED: true