Documentation
¶
Index ¶
- Constants
- Variables
- func LoadSeller(sellerID string) error
- func LoadSystem(envRoot string) error
- type Address
- type Bank
- type CacheConfig
- type Contact
- type DIN5008
- type EngineConfig
- type Impressum
- type Legal
- type SellerConfig
- type SellerPathsConfig
- type SingleCache
- type SystemConfig
- type SystemPathsConfig
- type Tax
- type TemplatesConfig
Constants ¶
View Source
const ( ProviderNative = "native" ProviderContainer = "container" )
View Source
const DefaultSeller = "default"
Variables ¶
View Source
var ( SystemParams *SystemConfig SellerParams *SellerConfig )
View Source
var Caches map[string]*lrucache.LRUCache
Functions ¶
func LoadSeller ¶
func LoadSystem ¶
Types ¶
type CacheConfig ¶
type CacheConfig struct {
Seller SingleCache `yaml:"seller_cache"`
Country SingleCache `yaml:"country_cache"`
Currency SingleCache `yaml:"currency_cache"`
Unit SingleCache `yaml:"unit_cache"`
Payment SingleCache `yaml:"payment_cache"`
}
type EngineConfig ¶
type EngineConfig struct {
HeartbeatFrequency time.Duration `yaml:"heartbeat_frequency"`
WatchSleep time.Duration `yaml:"watch_sleep"`
CmdTimeout time.Duration `yaml:"cmd_timeout"`
ConfigReloadFrequency time.Duration `yaml:"config_reload"`
DefaultQueue string `yaml:"default_queue"`
ContainerEngine string `yaml:"container_engine"`
PdfEngine string `yaml:"pdf_engine"`
ZugferdEngine string `yaml:"zugferd_engine"`
PdfProvider string `yaml:"pdf_provider"`
ZugferdProvider string `yaml:"zugferd_provider"`
}
type SellerConfig ¶
type SellerConfig struct {
Version int `yaml:"version"`
Name string `yaml:"name"`
LeitwegID string `yaml:"leitweg_id"`
Address Address `yaml:"address"`
Tax Tax `yaml:"tax"`
Contact Contact `yaml:"contact"`
Bank Bank `yaml:"bank"`
Legal Legal `yaml:"legal"`
DIN5008 DIN5008 `yaml:"din_5008"`
Paths SellerPathsConfig `yaml:"paths"`
Templates TemplatesConfig `yaml:"templates"`
SellerRoot string
}
type SellerPathsConfig ¶
type SellerPathsConfig struct {
LogFile string `yaml:"log_file"`
}
type SingleCache ¶
type SystemConfig ¶
type SystemConfig struct {
Version int `yaml:"version"`
EnvRoot string `yaml:"-"`
Engine EngineConfig `yaml:"engine"`
Paths SystemPathsConfig `yaml:"paths"`
Caches CacheConfig `yaml:"caches"`
SystemRoot string
}
type SystemPathsConfig ¶
type TemplatesConfig ¶
Click to show internal directories.
Click to hide internal directories.