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
|
GetOrmDb(string) *gorm.DB
|
||||||
RegisterCaHandle(c string, a string, handle GinHandlerFunc)
|
RegisterCaHandle(c string, a string, handle GinHandlerFunc)
|
||||||
GetPid() int
|
GetPid() int
|
||||||
|
AsyncLock(string, *AsyncTask)
|
||||||
|
AsyncUnLock(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserApp interface {
|
type UserApp interface {
|
||||||
@ -384,6 +386,14 @@ func (this *app) GetPid() int {
|
|||||||
return this.pid
|
return this.pid
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *app) AsyncLock(key string, task *AsyncTask) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
func (this *app) AsyncUnLock(key string) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
func parseArgs() (int, int) {
|
func parseArgs() (int, int) {
|
||||||
args := os.Args[1:]
|
args := os.Args[1:]
|
||||||
if len(args) <= 0 {
|
if len(args) <= 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user