bootstrap

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package bootstrap provides application initialization logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boot

func Boot(app *foundation.Application) error

Boot is a convenience function that runs the default bootstrappers on the application. It is primarily used by tako.Run and in testing.

func DefaultBootstrappers

func DefaultBootstrappers() []foundation.Bootstrapper

DefaultBootstrappers returns the standard array of bootstrappers used to initialize a Tako application in the correct order.

Types

type BootProviders

type BootProviders struct{}

BootProviders validates dependencies and boots all registered service providers.

func (*BootProviders) Bootstrap

func (b *BootProviders) Bootstrap(app *foundation.Application) error

Bootstrap executes dependency validation then boots providers sequentially.

type EnsureDirectories

type EnsureDirectories struct{}

EnsureDirectories creates the necessary application directories.

func (*EnsureDirectories) Bootstrap

func (b *EnsureDirectories) Bootstrap(_ *foundation.Application) error

Bootstrap executes the initialization step.

type LoadConfiguration

type LoadConfiguration struct{}

LoadConfiguration loads (or creates) the application configuration. It is a no-op if a contracts.Config is already bound in the container.

func (*LoadConfiguration) Bootstrap

func (b *LoadConfiguration) Bootstrap(app *foundation.Application) error

Bootstrap executes the initialization step.

type RecordMetrics

type RecordMetrics struct{}

RecordMetrics emits boot-time metrics to the profiler if it is active.

func (*RecordMetrics) Bootstrap

func (b *RecordMetrics) Bootstrap(app *foundation.Application) error

Bootstrap executes the initialization step.

type RegisterCoreCommands

type RegisterCoreCommands struct{}

RegisterCoreCommands adds all built-in CLI commands to the registry.

func (*RegisterCoreCommands) Bootstrap

func (b *RegisterCoreCommands) Bootstrap(app *foundation.Application) error

Bootstrap executes the initialization step.

type RegisterLogger

type RegisterLogger struct{}

RegisterLogger sets up the internal file logger and registers its cleanup handler.

func (*RegisterLogger) Bootstrap

func (b *RegisterLogger) Bootstrap(app *foundation.Application) error

Bootstrap executes the initialization step.

type RegisterProfiler

type RegisterProfiler struct{}

RegisterProfiler creates and registers the profiler and debug server if enabled.

func (*RegisterProfiler) Bootstrap

func (b *RegisterProfiler) Bootstrap(app *foundation.Application) error

Bootstrap executes the initialization step.

type RegisterStorage

type RegisterStorage struct{}

RegisterStorage sets up the persistent key-value store.

func (*RegisterStorage) Bootstrap

func (b *RegisterStorage) Bootstrap(app *foundation.Application) error

Bootstrap executes the initialization step.

Jump to

Keyboard shortcuts

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