handlers

package
v0.0.0-...-0193369 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchoServer

func EchoServer(ws *websocket.Conn)

func MustAuth

func MustAuth(h http.Handler) http.Handler

Types

type Branches

type Branches struct {
	Map   map[string]map[string]string `json:"branches"`
	Repos []string                     `json:"repos"`
	Login string                       `json:"login"`
}

type CreateBranchHandler

type CreateBranchHandler struct {
	WS *WebSocketHandler
}

func (CreateBranchHandler) ServeHTTP

func (h CreateBranchHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DeleteBranchHandler

type DeleteBranchHandler struct {
	WS *WebSocketHandler
}

func (DeleteBranchHandler) ServeHTTP

func (h DeleteBranchHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GetBranchsHandler

type GetBranchsHandler struct {
	WS    *WebSocketHandler
	Repos []string
}

func (GetBranchsHandler) ServeHTTP

func (h GetBranchsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GithubAuthHandler

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

func (GithubAuthHandler) ServeHTTP

func (h GithubAuthHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type GithubLoginHandler

type GithubLoginHandler struct {
}

func (GithubLoginHandler) ServeHTTP

func (h GithubLoginHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type LogoutHandler

type LogoutHandler struct {
}

func (LogoutHandler) ServeHTTP

func (h LogoutHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type MainHandler

type MainHandler struct {
	File string
}

func (MainHandler) ServeHTTP

func (h MainHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type WebSocketHandler

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

func (*WebSocketHandler) Conn

func (h *WebSocketHandler) Conn() *websocket.Conn

func (*WebSocketHandler) Handler

func (h *WebSocketHandler) Handler(c *websocket.Conn)

Jump to

Keyboard shortcuts

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