Integrate cobra into the framework part1
This commit is contained in:
10
framework/contract/kernel.go
Normal file
10
framework/contract/kernel.go
Normal file
@ -0,0 +1,10 @@
|
||||
package contract
|
||||
|
||||
import "net/http"
|
||||
|
||||
const KernelName = "goweb:kernel"
|
||||
|
||||
type Kernel interface {
|
||||
// HttpEngine we use actually gin.Engine, but it is open to change.
|
||||
HttpEngine() http.Handler
|
||||
}
|
Reference in New Issue
Block a user