http

command
v0.0.0-...-c496913 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

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

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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