app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package app provides the application dependency container and configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Templates    map[string]template.Template
	Providers    map[string]provider.Provider
	StateManager *state.Manager
	Config       *Config
}

App is the dependency container for the application.

func NewApp

func NewApp(
	templates map[string]template.Template,
	providers map[string]provider.Provider,
	stateManager *state.Manager,
	config *Config,
) *App

NewApp creates a new App instance with the given dependencies.

func (*App) GetProvider

func (a *App) GetProvider(name string) (provider.Provider, bool)

GetProvider retrieves a provider by name from the app's provider map.

type Config

type Config struct {
	TemplatesPath string
	StoragePath   string
	LogLevel      string
}

Config holds application configuration.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default application configuration.

Jump to

Keyboard shortcuts

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