core

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

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

func New

func New(param *param.Application) (application *Application)

func (*Application) Add

func (a *Application) Add(components ...any) (err error)

Add 添加各种组件到系统中

func (*Application) Dependency

func (a *Application) Dependency() *builder.Dependency

func (*Application) Run

func (a *Application) Run(constructor runtime.Constructor)

Run 启动应用程序

type Bootstrap added in v0.3.8

type Bootstrap interface {
	app.Lifecycle

	// Startup 启动
	Startup(app *Application) error
}

Bootstrap 启动器,全局只能有一个启动器,且只能返回 Bootstrap 才能被正确的启动

type Config

type Config struct {
	*builder.Config[Config]
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(setup *config.Setup, params *param.Config) (config *Config)

func (*Config) Build added in v0.3.5

func (c *Config) Build() (getter *config.Getter)

func (*Config) Override added in v0.3.5

func (c *Config) Override() (config *Config)

Directories

Path Synopsis
internal
get

Jump to

Keyboard shortcuts

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