Documentation ¶
Index ¶
- Variables
- type Collection
- type Group
- func (g *Group) AddNamer(namers ...func(string) string)
- func (g *Group) Apply(e echo.RouteRegister, rootGroup string)
- func (g *Group) Pre(groupName string, middlewares ...interface{})
- func (g *Group) Register(groupName string, fn func(echo.RouteRegister), middlewares ...interface{})
- func (g *Group) SetMeta(groupName string, meta echo.H)
- func (g *Group) SetMetaKV(groupName string, key string, val interface{})
- func (g *Group) SetNamer(namers ...func(string) string)
- func (g *Group) Use(groupName string, middlewares ...interface{})
- type Host
- type Hoster
- type IRegister
- type MetaSetter
- type Register
- func (r *Register) AddGroupNamer(namers ...func(string) string) IRegister
- func (r *Register) Apply() IRegister
- func (r *Register) Clear() IRegister
- func (r *Register) Echo() *echo.Echo
- func (r *Register) HandlerWithRequest(handler interface{}, requests interface{}, methods ...string) echo.Handler
- func (r *Register) Host(hostName string, middlewares ...interface{}) Hoster
- func (r *Register) Logger() logger.Logger
- func (r *Register) MakeHandler(handler interface{}, requests ...interface{}) echo.Handler
- func (r *Register) MetaHandler(m echo.H, handler interface{}, requests ...interface{}) echo.Handler
- func (r *Register) MetaHandlerWithRequest(m echo.H, handler interface{}, requests interface{}, methods ...string) echo.Handler
- func (r *Register) Pre(middlewares ...interface{}) IRegister
- func (r *Register) PreToGroup(groupName string, middlewares ...interface{}) IRegister
- func (r *Register) Prefix() string
- func (r *Register) Register(fn func(echo.RouteRegister)) IRegister
- func (r *Register) RegisterToGroup(groupName string, fn func(echo.RouteRegister), middlewares ...interface{}) MetaSetter
- func (r *Register) RootGroup() string
- func (r *Register) Routes() []*echo.Route
- func (r *Register) SetGroupNamer(namers ...func(string) string) IRegister
- func (r *Register) SetPrefix(prefix string) IRegister
- func (r *Register) SetRootGroup(groupName string) IRegister
- func (r *Register) SetSkipper(f func() bool) IRegister
- func (r *Register) Skipped() bool
- func (r *Register) Use(middlewares ...interface{}) IRegister
- func (r *Register) UseToGroup(groupName string, middlewares ...interface{}) IRegister
- type Registers
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = &Collection{}
Functions ¶
This section is empty.
Types ¶
type Collection ¶
func (*Collection) Clear ¶
func (r *Collection) Clear()
type Group ¶
type Group struct { Handlers map[string][]func(echo.RouteRegister) Namers []func(string) string Middlewares map[string][]interface{} PreMiddlewares map[string][]interface{} Metas map[string]echo.H }
type Host ¶
type Hoster ¶
type Hoster interface { Use(middlewares ...interface{}) SetAlias(alias string) Hoster Register(groupName string, fn func(echo.RouteRegister), middlewares ...interface{}) }
type IRegister ¶
type IRegister interface { Echo() *echo.Echo Routes() []*echo.Route Logger() logger.Logger Prefix() string SetPrefix(prefix string) IRegister SetSkipper(f func() bool) IRegister Skipped() bool MakeHandler(handler interface{}, requests ...interface{}) echo.Handler MetaHandler(m echo.H, handler interface{}, requests ...interface{}) echo.Handler MetaHandlerWithRequest(m echo.H, handler interface{}, request interface{}, methods ...string) echo.Handler HandlerWithRequest(handler interface{}, requests interface{}, methods ...string) echo.Handler AddGroupNamer(namers ...func(string) string) IRegister SetGroupNamer(namers ...func(string) string) IRegister SetRootGroup(groupName string) IRegister RootGroup() string Apply() IRegister Pre(middlewares ...interface{}) IRegister Use(middlewares ...interface{}) IRegister PreToGroup(groupName string, middlewares ...interface{}) IRegister UseToGroup(groupName string, middlewares ...interface{}) IRegister Register(fn func(echo.RouteRegister)) IRegister RegisterToGroup(groupName string, fn func(echo.RouteRegister), middlewares ...interface{}) MetaSetter Host(hostName string, middlewares ...interface{}) Hoster Clear() IRegister }
type MetaSetter ¶
type MetaSetter interface { SetMeta(meta echo.H) MetaSetter SetMetaKV(key string, val interface{}) MetaSetter }
type Register ¶
type Register struct {
// contains filtered or unexported fields
}
func (*Register) AddGroupNamer ¶
func (*Register) HandlerWithRequest ¶
func (*Register) MakeHandler ¶
func (*Register) MetaHandler ¶
func (*Register) MetaHandlerWithRequest ¶
func (*Register) PreToGroup ¶
func (*Register) RegisterToGroup ¶
func (r *Register) RegisterToGroup(groupName string, fn func(echo.RouteRegister), middlewares ...interface{}) MetaSetter
func (*Register) SetGroupNamer ¶
func (*Register) SetRootGroup ¶
func (*Register) SetSkipper ¶
func (*Register) UseToGroup ¶
type Registers ¶
type Registers []func(g echo.RouteRegister)
func (Registers) Apply ¶
func (r Registers) Apply(g echo.RouteRegister)
func (*Registers) Register ¶
func (r *Registers) Register(rg ...func(g echo.RouteRegister))
Click to show internal directories.
Click to hide internal directories.