bootstrap

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package bootstrap wires all JumpGate modules together and manages the daemon lifecycle — startup, running, crash recovery, and graceful shutdown.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

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

Daemon holds all the runtime components of a running JumpGate instance and orchestrates their lifecycle.

func NewDaemon

func NewDaemon() (*Daemon, error)

NewDaemon initializes all modules in dependency order, recovers from any previously interrupted deployments, and returns a ready-to-start Daemon. Returns an error if any module fails to initialize.

func (*Daemon) Shutdown

func (d *Daemon) Shutdown(ctx context.Context)

Shutdown performs a graceful shutdown of all modules in reverse dependency order.

func (*Daemon) Start

func (d *Daemon) Start() error

Start begins all background services and blocks until a shutdown signal (SIGINT or SIGTERM) is received, then performs a graceful shutdown.

Jump to

Keyboard shortcuts

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