internal

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ADDRESS HTTP network address the server listens on.
	ADDRESS = "addr"
	// LOG_LEVEL Log message level.
	LOG_LEVEL = "log-level"
	// BASE_URL Base URL for the Firefly III API.
	BASE_URL = "firefly-base-url"
	// CONFIG_FILE JSON configuration file for Firefly webhooks.
	CONFIG_FILE = "firefly-config"
	// API_KEY Firefly III API key to use.
	API_KEY = "firefly-api-key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	FireflyClient *firefly.Firefly
	FireflyConfig *firefly.Config
	Logger        *slog.Logger
	Config        Config
}

func (*Application) Routes

func (a *Application) Routes(config Config) http.Handler

type Config

type Config struct {
	Addr              string
	FireflyBaseUrl    string
	FireflyConfigFile string
	FireflyApiKey     string
	LogLevel          slog.Level
}

Config holds basic application configuration.

func (*Config) Parse

func (c *Config) Parse()

Parse parses the command line flags and stores the result in the Config struct.

Jump to

Keyboard shortcuts

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