Added an API listener
This commit is contained in:
@ -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 .
|
||||
|
Reference in New Issue
Block a user