# Functions
EnsureContact returns middleware that extracts the value of :contact_id and sets it in the context.
EnsureInvoice returns middleware that extracts the value of :invoice_id and sets it in the context.
EnsureUser returns middleware that extracts the user_id from the session and sets the corresponding user in the context.
MustApp returns the application database or panics.
No description provided by the author
MustApp returns the application database or panics.
MustSession returns the session interface or panics.
No description provided by the author
Root returns the complete API.
No description provided by the author
TODO do multiple sessions work?.
SetAppDB returns middleware that stores the application database in the gin context.
SetSession returns middleware that stores the session interface in the gin context.
# Variables
Auth fetches or creates a user in the firestore DB.
Contact returns a contact by ID.
DeleteContact deletes a contact by ID.
DeleteInvoice is a handler for deleting an invoice by its ID.
TODO invoice_id should be in path then use MustInvoice.
Invoice returns the invoice by id.
NewContact creates a new contact for the user.
NewInvoice is a handler for creating a new invoice.
PDF returns the invoice pdf file by id.
UserContacts returns all contacts for a user.
TODO pagination UserInvoices returns all invoices for a user.
UserSummary returns total invoice amount and paid amount for the user.
ViewInvoice is a handler for viewing an invoice on wham-web.
# Structs
No description provided by the author
Config configures an api server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author