1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-13 01:30:31 +02:00

Removed Context#Socket

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-03-08 08:14:25 -08:00
parent b6deec4897
commit f4a5abc8b2
8 changed files with 30 additions and 65 deletions

View File

@ -8,10 +8,8 @@ import (
)
type (
HandlerFunc func(Request, Response)
Engine interface {
SetHandler(HandlerFunc)
SetHandler(Handler)
SetLogger(*log.Logger)
Start()
}
@ -67,4 +65,14 @@ type (
ReadTimeout time.Duration
WriteTimeout time.Duration
}
Handler interface {
ServeHTTP(Request, Response)
}
HandlerFunc func(Request, Response)
)
func (h HandlerFunc) ServeHTTP(req Request, res Response) {
h.ServeHTTP(req, res)
}