mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
gofmt -s -w .
Former-commit-id: 6cca675303187f10377a7a713b2e7b3cdf16fd18
This commit is contained in:
@@ -12,6 +12,12 @@ import (
|
||||
"github.com/kataras/iris/core/errors"
|
||||
)
|
||||
|
||||
// Router is the "director".
|
||||
// Caller should provide a request handler (router implementation or root handler).
|
||||
// Router is responsible to build the received request handler and run it
|
||||
// to serve requests, based on the received context.Pool.
|
||||
//
|
||||
// User can refresh the router with `RefreshRouter` whenever a route's field is changed by him.
|
||||
type Router struct {
|
||||
mu sync.Mutex // for Downgrade, WrapRouter & BuildRouter,
|
||||
// not indeed but we don't to risk its usage by third-parties.
|
||||
|
||||
Reference in New Issue
Block a user