Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var ( ErrRouterNotRegistered error = errors.New("Router not registered.") ErrNoRouterNameDefined error = errors.New("No router name provided.") )
Errors used by the router setter
Functions ¶
func GetSettedRouter ¶
func GetSettedRouter( c *controller.Controller, cfg *config.Gateway, i *i18n.Support, ) (http.Handler, error)
GetSettedRouter gets the registered router for the provided controller, middlewares and configuration.
func RegisterRouter ¶
func RegisterRouter(name string, f SetterFunc)
RegisterRouter registers provided router with the provided name The router is obtainable after calling the RouterSetterFunc
Types ¶
type SetterFunc ¶
type SetterFunc func( c *controller.Controller, cfg *config.Gateway, sup *i18n.Support, ) (http.Handler, error)
SetterFunc is the function that sets all the api routes for the provided handler
 Click to show internal directories. 
   Click to hide internal directories.