kernel

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStartKernelService

func NewStartKernelService(params ...interface{}) (interface{}, error)

初始化web引擎服务实例

Types

type StartKernelProvider

type StartKernelProvider struct {
	HttpEngine *gin.Engine
}

StartKernelProvider 提供web引擎

func (*StartKernelProvider) Boot

func (provider *StartKernelProvider) Boot(c framework.Container) error

Boot 启动的时候判断是否由外界注入了Engine,如果注入的化,用注入的,如果没有,重新实例化

func (*StartKernelProvider) IsDefer

func (provider *StartKernelProvider) IsDefer() bool

IsDefer 引擎的初始化我们希望开始就进行初始化

func (*StartKernelProvider) Name

func (provider *StartKernelProvider) Name() string

Name 提供凭证

func (*StartKernelProvider) Params

func (provider *StartKernelProvider) Params(c framework.Container) []interface{}

Params 参数就是一个HttpEngine

func (*StartKernelProvider) Register

Register 注册服务提供者

type StartKernelService

type StartKernelService struct {
	// contains filtered or unexported fields
}

引擎服务

func (*StartKernelService) HttpEngine

func (s *StartKernelService) HttpEngine() http.Handler

返回web引擎

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL