package
2.5.8+incompatible
Repository: https://github.com/cert-lv/graphoscope.git
Documentation: pkg.go.dev
# README
HTTP plugin
HTTP connector sends a GET/POST request and expects a [{...},{...},{...}]
list of flat JSON objects back.
Request contains:
- a list of
field=value
in case HTTP API doesn't support SQL queries sql
field with a complete SQL query in case API supports it
curl
to test:
curl 'https://localhost:443/api?uuid=auth-key&sql=FROM+service+WHERE+ip=%278.8.8.8%27'
Compile with:
go build -buildmode=plugin -ldflags="-w" -o http.so ./*.go
Access details
Source YAML definition's access
fields:
- url: HTTP access point, for example -
http://localhost:8000
- method:
GET
orPOST
, GET by default