expenses

package
v0.0.0-...-eddb447 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpenseToPublic

func ExpenseToPublic(expense model.Expense, entriesURL *url.URL) public.ExpenseData

ExpenseToPublic converts an expense to its public API representation.

func ExpenseToPublicList

func ExpenseToPublicList(expense model.Expense, entriesURL *url.URL) public.ExpenseListItemData

ExpenseToPublic converts an expense to its public API representation in expense listings.

func NewCreateExpenseFailedError

func NewCreateExpenseFailedError(status int, detail string) public.Error

func NewDeleteExpenseFailedError

func NewDeleteExpenseFailedError(status int, detail string) public.Error

func NewGetExpenseFailed

func NewGetExpenseFailed(status int, detail string) public.Error

func NewHandler

func NewHandler(db *gorm.DB, collection *url.URL) handler

func NewInvalidEntryError

func NewInvalidEntryError(detail string) public.Error

func NewListExpenseFailedError

func NewListExpenseFailedError(status int, detail string) public.Error

func NewUpdateExpenseFailed

func NewUpdateExpenseFailed(status int, detail string) public.Error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL