handlers

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoveryHandler

func DiscoveryHandler() http.Handler

DiscoveryHandler returns the discovery JSON

func GitHubEventHandler

func GitHubEventHandler(entClient *ent.Client, webhookSecret []byte, baseURL *url.URL, privateKey []byte) http.Handler

GitHubEventHandler handles the github events

func ModulesDownloadVersionHandler

func ModulesDownloadVersionHandler(entClient *ent.Client, githubURL *url.URL, privateKey []byte) http.Handler

ModulesDownloadVersionHandler returns link to download the module

func ModulesGetVersionHandler

func ModulesGetVersionHandler(entClient *ent.Client) http.Handler

ModulesGetVersionHandler returns a module versions

func ModulesListHandler

func ModulesListHandler(entClient *ent.Client) http.Handler

ModulesListHandler returns a list of the modules

func ModulesListVersionsHandler

func ModulesListVersionsHandler(entClient *ent.Client) http.Handler

ModulesListVersionsHandler returns a list of the module versions

func NotFoundHandler

func NotFoundHandler() http.Handler

NotFoundHandler handles not found

func NotImplementedHandler

func NotImplementedHandler() http.Handler

NotImplementedHandler handles not implemented

func Ping

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

Ping returns PONG

func PingHandler

func PingHandler() http.Handler

PingHandler handles ping

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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