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