rest

command
v0.0.0-...-a2a794e Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

README

REST API plugin

Connector sends a GET request and expects a list of flat JSON objects back, one line - one JSON. To the preconfigured REST API URL field/value will be attached as query.

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 rest.so ./*.go

Access details

Source YAML definition's access fields:

  • url: REST API access point, for example - http://localhost:8000/RESTv1
  • username: Username if exists
  • password: User's password if exists

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