Versions in this module Expand all Collapse all v1 v1.5.0 Jun 29, 2024 v1.4.0 Aug 9, 2022 v1.3.1 Dec 20, 2021 v1.3.0 Nov 22, 2021 Changes in this version + func DecodeInvoice(invoice *Invoice) (*database.Invoice, error) + func DecodeInvoiceLineItem(lineItem *LineItem) *database.LineItem + func DecodeInvoices(invoices []Invoice) ([]database.Invoice, error) + func DisableLog() + func New(host, net, rootCert, cert, key string) (*cockroachdb, error) + func UseLogger(logger slog.Logger) + type DCC struct + ContractorType int + Domain int + NomineeUserID string + OppositionUserIDs string + PublicKey string + ServerSignature string + SponsorStatement string + SponsorUserID string + Status int + StatusChangeReason string + SupportUserIDs string + TimeReviewed int64 + TimeSubmitted int64 + Token string + Type int + UserSignature string + func (DCC) TableName() string + type ExchangeRate struct + ExchangeRate uint + Month uint + Year uint + func (ExchangeRate) TableName() string + type Invoice struct + Changes []InvoiceChange + ContractorContact string + ContractorLocation string + ContractorName string + ContractorRate uint + ExchangeRate uint + Key string + LineItems []LineItem + Month uint + PaymentAddress string + Payments Payments + PublicKey string + ServerSignature string + Status uint + StatusChangeReason string + Timestamp time.Time + Token string + UserID string + UserSignature string + Username string + Version string + Year uint + func EncodeInvoice(dbInvoice *database.Invoice) *Invoice + func (Invoice) TableName() string + type InvoiceChange struct + AdminPublicKey string + InvoiceKey string + InvoiceToken string + NewStatus uint + Reason string + Timestamp time.Time + func (InvoiceChange) TableName() string + type LineItem struct + ContractorRate uint + Description string + Domain string + Expenses uint + InvoiceKey string + InvoiceToken string + Labor uint + LineItemKey string + ProposalURL string + SubUserID string + Subdomain string + Type uint + func EncodeInvoiceLineItem(dbLineItem *database.LineItem) LineItem + func (LineItem) TableName() string + type MatchingLineItems struct + ContractorRate uint + Description string + Domain string + ExchangeRate uint + Expenses uint + InvoiceToken string + Labor uint + Month uint + ProposalURL string + PublicKey string + SubRate uint + SubUser string + Subdomain string + Type uint + UserID string + Year uint + type Payments struct + Address string + AmountNeeded int64 + AmountReceived int64 + InvoiceKey string + InvoiceToken string + Status uint + TimeLastUpdated int64 + TimeStarted int64 + TxIDs string + func (Payments) TableName() string + type Version struct + ID string + Timestamp int64 + Version string + func (Version) TableName() string