2015-05-23 05:26:52 +02:00
|
|
|
package echo
|
|
|
|
|
|
|
|
type (
|
|
|
|
Group struct {
|
2015-05-23 06:24:35 +02:00
|
|
|
echo Echo
|
2015-05-23 05:26:52 +02:00
|
|
|
}
|
|
|
|
)
|
2015-05-23 06:24:35 +02:00
|
|
|
|
|
|
|
func (g *Group) Use(m ...Middleware) {
|
|
|
|
for _, h := range m {
|
|
|
|
g.echo.middleware = append(g.echo.middleware, wrapMiddleware(h))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *Group) Connect(path string, h Handler) {
|
|
|
|
g.echo.Connect(path, h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *Group) Delete(path string, h Handler) {
|
|
|
|
g.echo.Delete(path, h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *Group) Get(path string, h Handler) {
|
|
|
|
g.echo.Get(path, h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *Group) Head(path string, h Handler) {
|
|
|
|
g.echo.Head(path, h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *Group) Options(path string, h Handler) {
|
|
|
|
g.echo.Options(path, h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *Group) Patch(path string, h Handler) {
|
|
|
|
g.echo.Patch(path, h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *Group) Post(path string, h Handler) {
|
|
|
|
g.echo.Post(path, h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *Group) Put(path string, h Handler) {
|
|
|
|
g.echo.Put(path, h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *Group) Trace(path string, h Handler) {
|
|
|
|
g.echo.Trace(path, h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *Group) WebSocket(path string, h HandlerFunc) {
|
|
|
|
g.echo.WebSocket(path, h)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (g *Group) Group(prefix string, m ...Middleware) *Group {
|
|
|
|
return g.echo.Group(prefix, m...)
|
|
|
|
}
|