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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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