wheat-cache/plugins/log-middle/middleware.go

25 lines
386 B
Go

package log_middle
import (
"gitee.com/timedb/wheatCache/pkg/event"
"gitee.com/timedb/wheatCache/plugins"
)
type logMiddle struct {
}
func (i *logMiddle) Init() {
}
func (i *logMiddle) Exec(e event.Event) (event.Event, error) {
return e, nil
}
func (i *logMiddle) Name() string {
return "logMiddle"
}
func NewMiddleware() plugins.MiddleToolsInterface {
return &logMiddle{}
}