handler

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitlabHandler

type GitlabHandler struct {
	MessageChannel string
	// contains filtered or unexported fields
}

GitlabHandler to process gitlab events

func NewGitlabHandler

func NewGitlabHandler(conf *config.Config, notifyChan chan notifier.Message) (*GitlabHandler, error)

NewGitlabHandler creates the handler to accept gitlab webhooks

func (*GitlabHandler) ServeHTTP

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

ServeHTTP gets called each time the desired route is called from external

type IndexHandler

type IndexHandler struct {
}

IndexHandler to process gitlab events

func (*IndexHandler) ServeHTTP

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

Jump to

Keyboard shortcuts

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