You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
335 B
26 lines
335 B
11 months ago
|
package rest
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type (
|
||
|
Middleware func(next http.HandlerFunc) http.HandlerFunc
|
||
|
|
||
|
Route struct {
|
||
|
Method string
|
||
|
Path string
|
||
|
Handler http.HandlerFunc
|
||
|
}
|
||
|
|
||
|
RouteOption func(r *featureRoutes)
|
||
|
|
||
|
featureRoutes struct {
|
||
|
timeout time.Duration
|
||
|
priority bool
|
||
|
routes []Route
|
||
|
maxBytes int64
|
||
|
}
|
||
|
)
|