Documentation ¶
Index ¶
- type Group
- func (g *Group) AddNamer(namers ...func(string) string)
- func (g *Group) Apply(e echo.RouteRegister, rootGroup string)
- func (g *Group) Register(groupName string, fn func(echo.RouteRegister), middlewares ...interface{})
- func (g *Group) SetNamer(namers ...func(string) string)
- func (g *Group) Use(groupName string, middlewares ...interface{})
- type Host
- type Register
- func (r *Register) AddGroupNamer(namers ...func(string) string)
- func (r *Register) Apply()
- func (r *Register) Host(hostName string, middlewares ...interface{}) *Host
- func (r *Register) Register(fn func(echo.RouteRegister))
- func (r *Register) RegisterToGroup(groupName string, fn func(echo.RouteRegister), middlewares ...interface{})
- func (r *Register) SetGroupNamer(namers ...func(string) string)
- func (r *Register) Use(groupName string, middlewares ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { Handlers map[string][]func(echo.RouteRegister) Namers []func(string) string Middlewares map[string][]interface{} PreMiddlewares map[string][]interface{} }
type Host ¶
type Register ¶
type Register struct { Echo *echo.Echo RootGroup string Handlers []func(echo.RouteRegister) Group *Group Hosts map[string]*Host }
func (*Register) AddGroupNamer ¶
func (*Register) Register ¶
func (r *Register) Register(fn func(echo.RouteRegister))
func (*Register) RegisterToGroup ¶
func (r *Register) RegisterToGroup(groupName string, fn func(echo.RouteRegister), middlewares ...interface{})
func (*Register) SetGroupNamer ¶
Click to show internal directories.
Click to hide internal directories.