config

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: BSD-2-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BankAccount

type BankAccount struct {
	ID             string  `yaml:"id"`
	Name           string  `yaml:"name"`
	BalanceType    string  `yaml:"balanceType"`
	Balance        float64 `yaml:"balance,omitempty"`
	Currency       string  `yaml:"currency,omitempty"`
	CurrencySymbol string  `yaml:"currencySymbol,omitempty"`
}

type BankConfig

type BankConfig struct {
	Institution string        `yaml:"institution"`
	Accounts    []BankAccount `yaml:"accounts"`
}

type Config

type Config struct {
	GoCardless    GoCardlessConfig    `yaml:"gocardless"`
	Pushover      PushoverConfig      `yaml:"pushover"`
	Requisitioner RequisitionerConfig `yaml:"requisitioner"`
	RenewTimeFile string              `yaml:"renewTimeFile"`
}

func GetConfig

func GetConfig() Config

type CredentialsConfig

type CredentialsConfig struct {
	SecretID  string `yaml:"secretID"`
	SecretKey string `yaml:"secretKey"`
}

type GoCardlessConfig

type GoCardlessConfig struct {
	Credentials CredentialsConfig `yaml:"credentials"`
	Bank        BankConfig        `yaml:"bank"`
}

type ListenConfig

type ListenConfig struct {
	Host string `yaml:"host"`
	Port int    `yaml:"port"`
}

type PushoverConfig

type PushoverConfig struct {
	Tokens PushoverTokens `yaml:"tokens"`
}

type PushoverTokens

type PushoverTokens struct {
	User string `yaml:"user"`
	App  string `yaml:"app"`
}

type RedirectConfig

type RedirectConfig struct {
	Proto string `yaml:"proto"`
	Host  string `yaml:"host"`
	Port  int    `yaml:"port"`
	Path  string `yaml:"path"`
}

type RequisitionerConfig

type RequisitionerConfig struct {
	Listen   ListenConfig   `yaml:"listen"`
	Redirect RedirectConfig `yaml:"redirect"`
}

Jump to

Keyboard shortcuts

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