api

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Logger logs.Logger
	// contains filtered or unexported fields
}

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

func NewServer

func NewServer(l logs.Logger) *Server

NewServer returns a new Server instance

func (*Server) Logs

func (s *Server) Logs(rw http.ResponseWriter, req *http.Request)

Logs is an http.HandlerFunc that will stream the logs for a build.

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