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/ngin/types.go

32 lines
423 B
Go

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