Documentation ¶
Index ¶
- func NewWebgoKernelService(params ...interface{}) (interface{}, error)
- type WebgoKernelProvider
- func (provider *WebgoKernelProvider) Boot(c framework.Container) error
- func (provider *WebgoKernelProvider) IsDefer() bool
- func (provider *WebgoKernelProvider) Name() string
- func (provider *WebgoKernelProvider) Params(c framework.Container) []interface{}
- func (provider *WebgoKernelProvider) Register(c framework.Container) framework.NewInstance
- type WebgoKernelService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebgoKernelService ¶
func NewWebgoKernelService(params ...interface{}) (interface{}, error)
初始化web引擎服务实例
Types ¶
type WebgoKernelProvider ¶
WebgoKernelProvider 提供web引擎
func (*WebgoKernelProvider) Boot ¶
func (provider *WebgoKernelProvider) Boot(c framework.Container) error
Boot 启动的时候判断是否由外界注入了Engine,如果注入的化,用注入的,如果没有,重新实例化
func (*WebgoKernelProvider) IsDefer ¶
func (provider *WebgoKernelProvider) IsDefer() bool
IsDefer 引擎的初始化我们希望开始就进行初始化
func (*WebgoKernelProvider) Params ¶
func (provider *WebgoKernelProvider) Params(c framework.Container) []interface{}
Params 参数就是一个HttpEngine
func (*WebgoKernelProvider) Register ¶
func (provider *WebgoKernelProvider) Register(c framework.Container) framework.NewInstance
Register 注册服务提供者
type WebgoKernelService ¶
type WebgoKernelService struct {
// contains filtered or unexported fields
}
引擎服务
func (*WebgoKernelService) HttpEngine ¶
func (s *WebgoKernelService) HttpEngine() http.Handler
返回web引擎
Click to show internal directories.
Click to hide internal directories.