http

package
v0.0.0-...-8b36eab Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2016 License: GPL-2.0 Imports: 7 Imported by: 2

Documentation

Overview

* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: app.go * +===============================================

* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: handle.go * +===============================================

* +=============================================== * | Author: Elahe Jalalpour (el.jalalpour@gmail.com) * | * | Creation Date: 27-11-2015 * | * | File Name: re.go * +===============================================

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPApp

type HTTPApp struct {
	App  bh.App
	Hive bh.Hive
}

func NewHTTPApp

func NewHTTPApp(a bh.App, h bh.Hive) HTTPApp

func (HTTPApp) DefaultHandle

func (h HTTPApp) DefaultHandle() *mux.Route

func (HTTPApp) HandleHTTP

func (h HTTPApp) HandleHTTP(url string, handler HTTPHandler) *mux.Route

func (HTTPApp) HandleHTTPFunc

func (h HTTPApp) HandleHTTPFunc(url string, handler HTTPHandlerFunc) *mux.Route

type HTTPHandler

type HTTPHandler interface {
	Handler(http.ResponseWriter, *http.Request, bh.Hive)
}

type HTTPHandlerFunc

type HTTPHandlerFunc func(http.ResponseWriter, *http.Request, bh.Hive)

type HTTPRequest

type HTTPRequest struct {
	AppName string
	Verb    string
	Data    []byte
}

type HTTPResponse

type HTTPResponse struct {
	AppName string
	Data    []byte
}

Jump to

Keyboard shortcuts

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