handlers

package
v0.0.0-...-2af298d Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Panic

func Panic(c *router.Control)

Types

type Handler

type Handler struct {
	DB      *reform.DB
	Infolog *log.Logger
	Errlog  *log.Logger
	Env     map[string]string
}

Handler defines

func (*Handler) AuthCallbackHandler

func (h *Handler) AuthCallbackHandler(c *router.Control)

AuthCallbackHandler is handler for auth callback

func (*Handler) BuildCallbackHandler

func (h *Handler) BuildCallbackHandler(c *router.Control)

BuildCallbackHandler is handler for callback from build service (system)

func (*Handler) BuildResultsHandler

func (h *Handler) BuildResultsHandler(c *router.Control)

BuildResultsHandler handles and stores results of the building process.

func (*Handler) HealthzHandler

func (h *Handler) HealthzHandler(c *router.Control)

HealthzHandler todo: add description

func (*Handler) HomeHandler

func (h *Handler) HomeHandler(c *router.Control)

HomeHandler is default handler for home page TODO: redirect to landing page

func (*Handler) InfoHandler

func (h *Handler) InfoHandler(c *router.Control)

InfoHandler todo: add description

func (*Handler) NotFoundHandler

func (h *Handler) NotFoundHandler(c *router.Control)

NotFoundHandler handles all the wrong routes

func (*Handler) ShowBuildResults

func (h *Handler) ShowBuildResults(c *router.Control)

func (*Handler) WebHookHandler

func (h *Handler) WebHookHandler(c *router.Control)

WebHookHandler is common handler for web hooks (installation, repositories installation, push)

Jump to

Keyboard shortcuts

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