feat: add middlewares

This commit is contained in:
Rogee
2024-12-21 00:09:18 +08:00
parent c5ecd6a36c
commit 94553081c9
6 changed files with 57 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
package middlewares
import (
log "github.com/sirupsen/logrus"
)
// @provider
type Middlewares struct {
log *log.Entry `inject:"false"`
}
func (f *Middlewares) Prepare() error {
f.log = log.WithField("module", "middleware")
return nil
}