config

package
v0.0.0-...-5a71971 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig() error

Types

type ChaseConfig

type ChaseConfig struct {
	IgnoreTransfers bool `yaml:"ignore_transfers"`
	IgnoreVenmo     bool `yaml:"ignore_venmo"`
}

func (*ChaseConfig) IgnoreEntry

func (c *ChaseConfig) IgnoreEntry(e *ledger.Entry) bool

type Config

type Config struct {
	Chase ChaseConfig `yaml:"chase"`
	Venmo VenmoConfig `yaml:"venmo"`
}

func GetConfig

func GetConfig() Config

func (*Config) IgnoreEntry

func (c *Config) IgnoreEntry(e *ledger.Entry) bool

type VenmoConfig

type VenmoConfig struct {
	IgnoreTransfers bool `yaml:"ignore_transfers"`
}

func (*VenmoConfig) IgnoreEntry

func (c *VenmoConfig) IgnoreEntry(e *ledger.Entry) bool

Jump to

Keyboard shortcuts

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