handlers

package
v0.0.0-...-35d8b9e Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

API endpoint handlers.

Endpoints:

* GET /api/v0/health - HealthCheckHandler returns status code 200 if server is OK

* POST /api/v0/slack/webhook - SlackWebhookHandler Receives Slack events

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckHandler

type HealthCheckHandler struct {
	// Logger outputs debug information
	Logger golog.Logger
}

HealthHandler returns status code 200 if API is OK

func (HealthCheckHandler) ServeHTTP

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

ServeHTTP responds to HTTP requests

type SlackWebhookHandler

type SlackWebhookHandler struct {
	// Logger outputs debug information
	Logger golog.Logger
}

SlackWebhookHandler receives Slack events

func (SlackWebhookHandler) ServeHTTP

func (h SlackWebhookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP responds to HTTP requests

Jump to

Keyboard shortcuts

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