kernel

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNiceKernelService

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

NewNiceKernelService 初始化web引擎服务实例

Types

type NiceKernelProvider

type NiceKernelProvider struct {
	HttpEngine *gin.Engine
}

NiceKernelProvider 提供web引擎

func (*NiceKernelProvider) Boot

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

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

func (*NiceKernelProvider) IsDefer

func (provider *NiceKernelProvider) IsDefer() bool

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

func (*NiceKernelProvider) Name

func (provider *NiceKernelProvider) Name() string

Name 提供凭证

func (*NiceKernelProvider) Params

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

Params 参数就是一个HttpEngine

func (*NiceKernelProvider) Register

Register 注册服务提供者

type NiceKernelService

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

NiceKernelService 引擎服务

func (*NiceKernelService) HttpEngine

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

HttpEngine 返回web引擎

Jump to

Keyboard shortcuts

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