httpserver

package
v0.0.0-...-be5fe52 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package httpserver provides an HTTP server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

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

HTTPServer represents an HTTP server.

func New

func New(conf *config.Config, evchan chan<- *linebot.Event) *HTTPServer

New creates an HTTP server and returns it.

func (*HTTPServer) Run

func (hs *HTTPServer) Run() error

Run runs an HTTP server.

func (*HTTPServer) ServeHTTP

func (hs *HTTPServer) ServeHTTP(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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