framework1/framework/contract/kernel.go

11 lines
210 B
Go
Raw Normal View History

2024-10-19 22:02:19 +08:00
package contract
import "net/http"
const KernelKey = "hade:kernel"
type Kernel interface {
// HttpEngine http.Handler结构作为net/http框架使用, 实际上是gin.Engine
HttpEngine() http.Handler
}