diff --git a/pkg/middle-msg/logx.go b/pkg/middle-msg/logx.go index 90b2340..1dd9fe1 100644 --- a/pkg/middle-msg/logx.go +++ b/pkg/middle-msg/logx.go @@ -3,7 +3,7 @@ package middle_msg import "time" var ( - EventNameLog = "logcontext" + EventNameLog = "log-context" ) type LogContext struct { diff --git a/pkg/middle-msg/lru.go b/pkg/middle-msg/lru.go index b5aa092..b566510 100644 --- a/pkg/middle-msg/lru.go +++ b/pkg/middle-msg/lru.go @@ -1,3 +1,14 @@ package middle_msg +import "time" +var LruCleanContextName = "lru-clean-context" + +type LruCleanContext struct { + Keys []string + BeforeCleanSize int64 + BehindCleanSize int64 + + StartTime time.Duration + EndTime time.Duration +}