Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RestController ¶
type RestController struct { LoggingClient logger.LoggingClient // contains filtered or unexported fields }
func NewRestController ¶
func NewRestController(r *mux.Router, dic *di.Container) *RestController
func (*RestController) AddRoute ¶
func (c *RestController) AddRoute(route string, handler func(http.ResponseWriter, *http.Request), methods ...string) error
func (*RestController) InitRestRoutes ¶
func (c *RestController) InitRestRoutes()
func (*RestController) Router ¶
func (c *RestController) Router() *mux.Router
Click to show internal directories.
Click to hide internal directories.