From 178d811f9a45f33616901861e95f82e1d055bc83 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 4 Apr 2024 13:53:15 +0800 Subject: [PATCH] 1 --- app.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app.go b/app.go index c7e3ff5..0e97be7 100644 --- a/app.go +++ b/app.go @@ -39,6 +39,8 @@ type App interface { GetOrmDb(string) *gorm.DB RegisterCaHandle(c string, a string, handle GinHandlerFunc) GetPid() int + AsyncLock(string, *AsyncTask) + AsyncUnLock(string) } type UserApp interface { @@ -384,6 +386,14 @@ func (this *app) GetPid() int { return this.pid } +func (this *app) AsyncLock(key string, task *AsyncTask) { + +} + +func (this *app) AsyncUnLock(key string) { + +} + func parseArgs() (int, int) { args := os.Args[1:] if len(args) <= 0 {