IMMORTALxJO / scheme-detector

Detect different protocols and engines from the current environment variables.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scheme-detector

Coverage

DeepSource

Detect different protocols and engines from the current environment variables.

$ env
...
DATABASE_URI=pgsql://user:pg_pass@pg.example.com/example
EXAMPLE_API_PASS=apipass
EXAMPLE_API_URL=https://api.example.com
EXAMPLE_API_USER=apiuser
...
$ ./schemedetector
[
  {
    "engine": "pgsql",
    "port": "5432",
    "host": "pg.example.com",
    "username": "user",
    "password": "pg_pass"
  },
  {
    "engine": "https",
    "port": "443",
    "host": "api.example.com",
    "username": "apiuser",
    "password": "apipass"
  }
]

About

Detect different protocols and engines from the current environment variables.


Languages

Language:Go 100.0%