Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutableRouter ¶
type MutableRouter struct {
// contains filtered or unexported fields
}
MutableRouter wraps the mux router, and allows the router to be atomically changed.
func NewMutableRouter ¶
func NewMutableRouter() *MutableRouter
NewMutableRouter creates new mux with no handlers
func NewMutableRouterFromRouter ¶
func NewMutableRouterFromRouter(router *mux.Router) *MutableRouter
NewMutableRouterFromRouter creates new mux from immutable parent
func (*MutableRouter) ServeHTTP ¶
func (mr *MutableRouter) ServeHTTP(responseWriter http.ResponseWriter, request *http.Request)
ServeHTTP implements the http.Handler interface
func (*MutableRouter) UpdateRouter ¶
func (mr *MutableRouter) UpdateRouter(newHandler *mux.Router)
UpdateRouter replaces the underlying mux with new one atomically
Click to show internal directories.
Click to hide internal directories.