feat: restart to apply update, privileged helper, rollback
This commit is contained in:
1 parent
70460e4170
commit
54e8fd5fed
63 files changed
+8635
-164
No files matched your search
@@ -0,0 +1,22 @@
|
||||
package update
|
||||
|
||||
import (
|
||||
domain "RenewCMS/internal/domain/update"
|
||||
"time"
|
||||
)
|
||||
|
||||
type SystemClock struct{}
|
||||
|
||||
var _ domain.Clock = &SystemClock{}
|
||||
|
||||
func NewSystemClock() *SystemClock {
|
||||
return &SystemClock{}
|
||||
}
|
||||
|
||||
func (c *SystemClock) Now() time.Time {
|
||||
return time.Now()
|
||||
}
|
||||
|
||||
func (c *SystemClock) Sleep(duration time.Duration) {
|
||||
time.Sleep(duration)
|
||||
}
|
||||
Reference in new issue
Block a user