You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-zero/rest/types.go

34 lines
481 B
Go

package rest
4 years ago
import "net/http"
type (
Middleware func(next http.HandlerFunc) http.HandlerFunc
4 years ago
Route struct {
Method string
Path string
Handler http.HandlerFunc
}
RouteOption func(r *featuredRoutes)
4 years ago
jwtSetting struct {
enabled bool
secret string
prevSecret string
}
signatureSetting struct {
SignatureConf
enabled bool
}
featuredRoutes struct {
priority bool
jwt jwtSetting
signature signatureSetting
routes []Route
}
)