internal

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HTTP network address the server listens on.
	ADDRESS = "addr"
	// Log message level.
	LOG_LEVEL = "log-level"
	// Base URL for the Firefly III API.
	BASE_URL = "firefly-base-url"
	// JSON configuration file for Firefly webhooks.
	CONFIG_FILE = "firefly-config"
	// 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 (app *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