Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
fv
command
Command fv issues Polish VAT invoices and sends them to KSeF.
|
Command fv issues Polish VAT invoices and sends them to KSeF. |
|
internal
|
|
|
cli
Package cli holds the Cobra command tree of fv.
|
Package cli holds the Cobra command tree of fv. |
|
config
Package config locates, loads and resolves fv's configuration.
|
Package config locates, loads and resolves fv's configuration. |
|
credentials
Package credentials imports, stores, inspects and uses the KSeF login certificate.
|
Package credentials imports, stores, inspects and uses the KSeF login certificate. |
|
credentials/credtest
Package credtest generates throwaway certificates and keys for tests.
|
Package credtest generates throwaway certificates and keys for tests. |
|
exitcode
Package exitcode maps sentinel errors to fv process exit codes, so packages can tag their errors without importing the cli package.
|
Package exitcode maps sentinel errors to fv process exit codes, so packages can tag their errors without importing the cli package. |
|
fa3
Package fa3 builds FA(3) invoice XML (KSeF schema 1-0E) deterministically from already computed amounts, and ships the vendored XSD used to validate it.
|
Package fa3 builds FA(3) invoice XML (KSeF schema 1-0E) deterministically from already computed amounts, and ships the vendored XSD used to validate it. |
|
fsafe
Package fsafe is the one place fv creates files and directories.
|
Package fsafe is the one place fv creates files and directories. |
|
httpx
Package httpx is the hardened HTTPS client for fv's non-KSeF services (White List, VIES, NBP).
|
Package httpx is the hardened HTTPS client for fv's non-KSeF services (White List, VIES, NBP). |
|
invoice
Package invoice is the pure computation behind "fv issue": dates, the line description template and the amounts.
|
Package invoice is the pure computation behind "fv issue": dates, the line description template and the amounts. |
|
ksef
Package ksef is fv's client for the KSeF 2.0 API: fixed per-environment base URLs, a hardened HTTPS transport, KSeF error decoding, safe request logging, the cache of the Ministry of Finance public-key certificates and the certificate login flow.
|
Package ksef is fv's client for the KSeF 2.0 API: fixed per-environment base URLs, a hardened HTTPS transport, KSeF error decoding, safe request logging, the cache of the Ministry of Finance public-key certificates and the certificate login flow. |
|
ksef/ksefake
Package ksefake is a scripted TLS test server standing in for the KSeF API.
|
Package ksefake is a scripted TLS test server standing in for the KSeF API. |
|
logging
Package logging provides fv's structured log (fv.log) and the process-wide secret redactor that keeps registered secret values out of log files and printed errors.
|
Package logging provides fv's structured log (fv.log) and the process-wide secret redactor that keeps registered secret values out of log files and printed errors. |
|
money
Package money holds locale-agnostic amount parsing and VAT arithmetic.
|
Package money holds locale-agnostic amount parsing and VAT arithmetic. |
|
nbp
Package nbp is the client for the NBP table A (average rates) API.
|
Package nbp is the client for the NBP table A (average rates) API. |
|
numbering
Package numbering renders invoice numbers from a pattern and derives the counter period.
|
Package numbering renders invoice numbers from a pattern and derives the counter period. |
|
registry
Package registry resolves party data from the official registries by tax number only: the MF VAT White List for Polish NIPs and EU VIES for EU VAT numbers.
|
Package registry resolves party data from the official registries by tax number only: the MF VAT White List for Polish NIPs and EU VIES for EU VAT numbers. |
|
secrets
Package secrets reads secrets (KSeF tokens and the like) from the OS keyring, with an environment-variable fallback.
|
Package secrets reads secrets (KSeF tokens and the like) from the OS keyring, with an environment-variable fallback. |
|
store
Package store is fv's local archive: invoice numbering counters in state.json and one folder per invoice holding invoice.xml, meta.json and upo.xml.
|
Package store is fv's local archive: invoice numbering counters in state.json and one folder per invoice holding invoice.xml, meta.json and upo.xml. |
|
useragent
Package useragent holds the User-Agent fv sends on every HTTP request.
|
Package useragent holds the User-Agent fv sends on every HTTP request. |
|
validate
Package validate checks user-supplied identifiers and settings.
|
Package validate checks user-supplied identifiers and settings. |
|
xades
Package xades builds the KSeF AuthTokenRequest and signs it as an enveloped XAdES-BES signature in pure Go.
|
Package xades builds the KSeF AuthTokenRequest and signs it as an enveloped XAdES-BES signature in pure Go. |
Click to show internal directories.
Click to hide internal directories.