server

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

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

Go to latest
Published: May 17, 2017 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(o *options.Options) error

Types

type ErrorHTML

type ErrorHTML struct {
	StatusCode int
	StatusText string
	Message    string
	AppName    string
}

func NewErrorHTML

func NewErrorHTML(code int, message string) ErrorHTML

type Handler

type Handler struct {
	Options  *options.Options
	Storage  *storage.Storage
	Uploader *uploader.Uploader
}

func NewHandler

func NewHandler(o *options.Options) (Handler, error)

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(resp http.ResponseWriter, req *http.Request)

ServeHTTP はリクエストに応じて処理を行いレスポンスする。

Jump to

Keyboard shortcuts

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