github

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2016 License: BSD-2-Clause Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Queue conveyor.BuildQueue
	// contains filtered or unexported fields
}

Server implements the http.Handler interface for serving build requests via GitHub webhooks.

func NewServer

func NewServer(q conveyor.BuildQueue) *Server

NewServer returns a new http.Handler for serving the GitHub webhooks.

func (*Server) Ping

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

Ping is an http.HandlerFunc that will handle the `ping` event from GitHub.

func (*Server) Push

func (s *Server) Push(w http.ResponseWriter, r *http.Request)

Push is an http.HandlerFunc that will handle the `push` event from GitHub.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements the http.Handler interface.

Jump to

Keyboard shortcuts

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