app

package
v0.0.0-...-80b4c31 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func InitializeApp

func InitializeApp(wireInput0 string) (*App, func() error, error)

func NewApp

func NewApp(
	config *conf.Config,
	server *http.Server,
	migrator *migrate.Migrator,
	scheduler *cron.Cron,
	_ registry.Subscriptions,
) *App

func (*App) Run

func (r *App) Run(ctx context.Context) error

Run migrates the database, then serves until ctx is cancelled; SIGHUP hot-upgrades.

type Cli

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

func InitializeCLI

func InitializeCLI() (*Cli, func() error, error)

func NewCli

func NewCli(cmd *cli.Command) *Cli

func (*Cli) Run

func (r *Cli) Run(version string) error

Run executes the command; SIGINT/SIGTERM cancel the context handed to it.

Jump to

Keyboard shortcuts

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