command
Version:
v0.0.0-...-c496913
Opens a new window with list of versions in this module.
Published: Dec 11, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
or POST
, GET by default
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.