api

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthCheckHandler

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

HealthCheckHandler returns ok when the server is alive

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client must be initialized for handlers which call external services. These handlers are methods of the client. A client is safe for concurrent reuse across goroutines

func NewClient

func NewClient(username string, password string) (c *Client, err error)

NewClient returns an initialized client

func (*Client) SearchHandler

func (client *Client) SearchHandler(w http.ResponseWriter, r *http.Request)

SearchHandler executes a search for catalog items inside a geojson polygon. The client should already be authenticated

Jump to

Keyboard shortcuts

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