framework1/framework/contract/kernel.go

11 lines
210 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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