1
This commit is contained in:
parent
1a19949e64
commit
178d811f9a
10
app.go
10
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user