engine

package
v2.0.0-apha.2+incompat... Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2016 License: MIT Imports: 3 Imported by: ? 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

This section is empty.

Types

type Config

type Config struct {
	Address      string
	TLSCertfile  string
	TLSKeyfile   string
	ReadTimeout  time.Duration
	WriteTimeout time.Duration
}

type Engine

type Engine interface {
	SetHandler(HandlerFunc)
	SetLogger(logger.Logger)
	Start()
}

type HandlerFunc

type HandlerFunc func(Request, Response)
type Header interface {
	Add(string, string)
	Del(string)
	Get(string) string
	Set(string, string)
	Object() interface{}
}

type Request

type Request interface {
	TLS() bool
	Scheme() string
	Host() string
	URI() string
	URL() URL
	Header() Header
	// Proto() string
	// ProtoMajor() int
	// ProtoMinor() int
	RemoteAddress() string
	Method() string
	Body() io.ReadCloser
	FormValue(string) string
	Object() interface{}
}

type Response

type Response interface {
	Header() Header
	WriteHeader(int)
	Write(b []byte) (int, error)
	Status() int
	Size() int64
	Committed() bool
	SetWriter(io.Writer)
	Writer() io.Writer
	Object() interface{}
}

type URL

type URL interface {
	SetPath(string)
	Path() string
	QueryValue(string) string
	Object() interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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