Documentation ¶
Index ¶
- func AddProvider(f func() any)
- type IServiceProvider
- type Kernel
- func (this *Kernel) LoadDefaultServiceProvider() *Kernel
- func (this *Kernel) LoadServiceProvider()
- func (this *Kernel) RunApp(console bool)
- func (this *Kernel) RunCmd()
- func (this *Kernel) RunServer()
- func (this *Kernel) Terminate()
- func (this *Kernel) WithNetListener(listener net.Listener) *Kernel
- func (this *Kernel) WithServiceProvider(f func() interfaces.ServiceProvider) *Kernel
- func (this *Kernel) WithServiceProviders(funcs []func() interfaces.ServiceProvider) *Kernel
- type Provider
- type Register
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Kernel ¶
type Kernel struct { // 自定义运行监听 NetListener net.Listener // contains filtered or unexported fields }
*
- 核心 *
- @create 2021-10-10
- @author deatil
func (*Kernel) LoadDefaultServiceProvider ¶
默认服务提供者
func (*Kernel) WithNetListener ¶
设置自定义监听
func (*Kernel) WithServiceProvider ¶
func (this *Kernel) WithServiceProvider(f func() interfaces.ServiceProvider) *Kernel
添加服务提供者
func (*Kernel) WithServiceProviders ¶
func (this *Kernel) WithServiceProviders(funcs []func() interfaces.ServiceProvider) *Kernel
批量添加服务提供者
type Register ¶
type Register struct {
// contains filtered or unexported fields
}
*
- 注册器 *
- @create 2021-12-19
- @author deatil
Click to show internal directories.
Click to hide internal directories.