booter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boot

func Boot(
	loadEnvFunc LoadEnvFunc,
	newConfigFunc NewConfigFunc,
	registrarCenter RegisterExecutor,
)

Types

type Config

type Config struct {
	RootDir        string
	ConfigFileName string
	Debug          bool
	Testing        bool
}

func NewConfig

func NewConfig(rootDir string, configFileName string, debug bool, testing bool) *Config

func NewConfigWithCommand

func NewConfigWithCommand() *Config

func NewDefaultConfig

func NewDefaultConfig() *Config

type LoadEnvFunc

type LoadEnvFunc func()

type NewConfigFunc

type NewConfigFunc func() *Config

type RegisterExecutor

type RegisterExecutor interface {
	BeforeExecute()
	Execute()
	AfterExecute()
}

type Registrar

type Registrar interface {
	Boot()
	Register()
}

type RegistrarCenter

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

func NewRegistrarCenter

func NewRegistrarCenter(registrars []Registrar) *RegistrarCenter

func (*RegistrarCenter) Execute

func (r *RegistrarCenter) Execute()

func (*RegistrarCenter) GetRegistrars

func (r *RegistrarCenter) GetRegistrars() []Registrar

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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