function

package module
v0.0.0-...-5aec75f Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

README

This project allows to search the Gardener documentation and integrate it into a bot framework. The overall flow looks like the following

architecture

Run locally using Docker

To startup a local instance of the service run

docker run -p 8080:8080 afritzler/gardener-docs-search

The service should response with a 200OK response on http://localhost:8080.

You can run an example search query via

curl -X POST -H "Content-Type: application/json" -d @example/request.json http://localhost:8080/search

Deploying Cloud Function

The search backend can be deployed to GCP as a Cloud Function via

gcloud functions deploy gardener-search --entry-point Search --runtime go111 --trigger-http --memory 128

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Search(w http.ResponseWriter, r *http.Request)

Search is the main entry point in our Cloud Function

Types

This section is empty.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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