Added an API listener
All checks were successful
Build and Push Docker Image / testing (1.24.x, ubuntu-latest) (push) Successful in 2m30s
Build and Push Docker Image / build-and-push (push) Successful in 11m56s

This commit is contained in:
2025-04-30 18:34:57 -04:00
parent 1475c7911f
commit d01e6a050f
13 changed files with 445 additions and 25 deletions

View File

@ -4,6 +4,7 @@ import (
"log/slog"
"os"
"git.savin.nyc/alex/go-receipt-tracker/listeners"
"github.com/spf13/viper"
)
@ -88,14 +89,14 @@ Do not wrap output in markdown, only pure json`
// Config .
type Config struct {
Telegram *Telegram `json:"telegram" yaml:"telegram"`
Parsers map[string]*Parser `json:"parsers" yaml:"parsers"`
DataBase *DataBase `json:"database" yaml:"database"`
Listeners map[string]*Listener `json:"listeners" yaml:"listeners"`
Bus *Bus `json:"bus" yaml:"bus"`
StoragePath string `json:"storage_path" yaml:"storage_path"`
Timezone string `json:"timezone" yaml:"timezone"`
Logging *Logging `json:"logging" yaml:"logging"`
Telegram *Telegram `json:"telegram" yaml:"telegram"`
Parsers map[string]*Parser `json:"parsers" yaml:"parsers"`
DataBase *DataBase `json:"database" yaml:"database"`
Listeners []listeners.Config `json:"listeners" yaml:"listeners"`
Bus *Bus `json:"bus" yaml:"bus"`
StoragePath string `json:"storage_path" yaml:"storage_path"`
Timezone string `json:"timezone" yaml:"timezone"`
Logging *Logging `json:"logging" yaml:"logging"`
}
// Parser .