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 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

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