Documentation
¶
Index ¶
- Variables
- func Entrance(conf *koanf.Koanf, session *sessions.Manager) func(next http.Handler) http.Handler
- func MustInstall(app biz.AppRepo) func(next http.Handler) http.Handler
- func MustLogin(session *sessions.Manager) func(next http.Handler) http.Handler
- func Status(next http.Handler) http.Handler
- func Throttle(tokens uint64, interval time.Duration) func(next http.Handler) http.Handler
- type Middlewares
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewMiddlewares)
Functions ¶
func MustInstall ¶
MustInstall 确保已安装应用
Types ¶
type Middlewares ¶
type Middlewares struct {
// contains filtered or unexported fields
}
func NewMiddlewares ¶
Click to show internal directories.
Click to hide internal directories.