webhookhttp

package
v0.0.0-...-65158ba Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArtifactRelease

func ArtifactRelease(w http.ResponseWriter, r *http.Request)

ArtifactRelease . . . http handler that will handle github release events, particularly your truffle projects

func NewRouter

func NewRouter() *mux.Router

NewRouter ... register each route and returns a new mux router instance

Types

type MyServer

type MyServer struct {
	// contains filtered or unexported fields
}

MyServer . . . type is a struct containing a pointer to a mux.router object

func NewWebHookServer

func NewWebHookServer() *MyServer

func (*MyServer) ServeHTTP

func (s *MyServer) ServeHTTP(rw http.ResponseWriter, req *http.Request)

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

Route . . . struct used to define a route, Name: description of the route Method: http method Pattern: actual route endpoint HandlerFunc: function to handle the route

type Routes

type Routes []Route

Routes slice of routes that are registered with the mux router. All new routes can be defined here.

Jump to

Keyboard shortcuts

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