kernel

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: MIT Imports: 4 Imported by: 1 module, 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 NewGocoreKernelService

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

NewGocoreKernelService 初始化web引擎服务实例

Types

type GocoreKernelProvider

type GocoreKernelProvider struct {
	HttpEngine *gin.Engine
}

func (*GocoreKernelProvider) Boot

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

func (*GocoreKernelProvider) IsDefer

func (sp *GocoreKernelProvider) IsDefer() bool

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

func (*GocoreKernelProvider) Name

func (sp *GocoreKernelProvider) Name() string

Name 提供凭证

func (*GocoreKernelProvider) Params

func (sp *GocoreKernelProvider) Params(c framework.Container) []interface{}

Params 参数就是一个HttpEngine

func (*GocoreKernelProvider) Register

Register 注册服务提供者

type GocoreKernelService

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

func (*GocoreKernelService) HttpEngine

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

返回web引擎

Jump to

Keyboard shortcuts

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