slow-query-api

module
v0.0.0-...-07f3eb5 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT

README

Slow Query API for PostgreSQL

Build Status coverage GoReport license GitHub go.mod Go version of a Go module GoDoc

Install

# HTTPS
git clone https://github.com/vbetsun/slow-query-api.git

# SSH
git clone git@github.com:vbetsun/slow-query-api.git

cd slow-query-api

Deploy

cp ./deployments/.env.example ./deployments/.env
Env variables
Name Value Description
PORT 8080 port for running app
PG_HOST postgres host for running DB
PG_PORT 5432 port for running DB
PG_USER user username for DB auth
PG_PASSWORD str0ngPass pass for DB auth
PG_DATABASE postgres DB name
SLOW_QUERY_DURATION 1000 max query duration in milliseconds
docker compose -f ./deployments/docker-compose.yml up -d

Test

make test

make cover

Directories

Path Synopsis
cmd
app
internal

Jump to

Keyboard shortcuts

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