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 {