xfboot

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEntryOrRegister

func GetEntryOrRegister(name string, create func() BootEntry) interface{}

func InitAllEntry

func InitAllEntry()

初始化所有入口

func InitEntry

func InitEntry(entryName string)

初始化指定入口

func IsEntryInit

func IsEntryInit(entryName string) bool

检查指定入口是否已经初始化

func IsRegisterEntry

func IsRegisterEntry(entryName string) bool

检查是否注册了指定入口

func RegisterEntry

func RegisterEntry(entry BootEntry) bool

注册启动初始化入口

func RegisterEntryPoint

func RegisterEntryPoint(entryName string, point func(entry BootEntry)) bool

注册启动初始化节点

Types

type BootEntry

type BootEntry interface {
	// 启动入口名称
	EntryName() string
	// 启动入口实例指针,可以通过该指针转成实际的入口类型
	Entry() interface{}
}

Jump to

Keyboard shortcuts

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