jsonnetd

command
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

README

jsonnetd

This is an HTTP server that loads a directory of Jsonnet files and serves each one as a webhook.

Each hook should evaluate to a Jsonnet function:

function(request) {
  // response body
}

The body of the POST request is itself interpreted as Jsonnet and given to the hook as a top-level request argument.

The entire result of evaluating the Jsonnet function is returned as the webhook response body, unless the function returns an error.

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