1
This commit is contained in:
parent
a12d6d4b9e
commit
feae034d36
5
app.go
5
app.go
@ -37,6 +37,7 @@ type App interface {
|
|||||||
user string, passwd string, dataBase string)
|
user string, passwd string, dataBase string)
|
||||||
GetOrmDb(string) *gorm.DB
|
GetOrmDb(string) *gorm.DB
|
||||||
RegisterCaHandle(c string, a string, handle GinHandlerFunc)
|
RegisterCaHandle(c string, a string, handle GinHandlerFunc)
|
||||||
|
GetPid() int
|
||||||
}
|
}
|
||||||
|
|
||||||
type UserApp interface {
|
type UserApp interface {
|
||||||
@ -372,6 +373,10 @@ func (this *app) getCaHandle(handleName string) GinHandlerFunc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *app) GetPid() int {
|
||||||
|
return os.Getpid()
|
||||||
|
}
|
||||||
|
|
||||||
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