app

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: MPL-2.0 Imports: 35 Imported by: 0

Documentation

Overview

Package app is the chassis entrypoint, factored out of cmd/txco so a downstream build (e.g. an overlay that blank-imports extra store backends) can reuse the exact boot orchestration instead of forking main. cmd/txco/main.go is now a thin shim that calls Run; behavior is byte-for-byte unchanged.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(bi BuildInfo) int

Run is the full chassis boot. It returns a process exit code; the caller's main does the single os.Exit so deferred cleanup runs on the normal-shutdown path. Fatal config/db errors still exit in place via log.Fatalf / logger.Fatal exactly as before.

Types

type BuildInfo

type BuildInfo struct {
	Version        string
	CommitId       string
	BuildTimestamp string
	InstallMethod  string
	// Chassis is the embedded open-core pin for a wrapping distribution
	// (e.g. txco-saas stamps the core pseudo-version here while
	// Version/CommitId describe the overlay build). Empty for open-core.
	Chassis string
}

BuildInfo carries the ldflag-injected build identity. The values live in the `main` package of whichever binary links this (so `-X main.Version` etc. keep working unchanged); the shim passes them in here.

Jump to

Keyboard shortcuts

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