Documentation ¶
Index ¶
- type Repo
- func (repo *Repo) CreateSchema() error
- func (repo *Repo) DeleteBooking(booking *models2.Booking) error
- func (repo *Repo) DeleteLedgerEntry(entry *models2.LedgerEntry) error
- func (repo *Repo) FindAllBookings() ([]models2.Booking, error)
- func (repo *Repo) FindAllLedgerEntries() ([]models2.LedgerEntry, error)
- func (repo *Repo) FindBookingById(id int64) (*models2.Booking, error)
- func (repo *Repo) FindCustomerById(id int64) (*models2.Customer, error)
- func (repo *Repo) FindLedgerEntryByID(id string) (*models2.LedgerEntry, error)
- func (repo *Repo) InitMigration() error
- func (repo *Repo) RunMigration() error
- func (repo *Repo) SaveBooking(booking *models2.Booking) error
- func (repo *Repo) SaveCustomer(customer *models2.Customer) error
- func (repo *Repo) SaveLedgerEntry(ledgerEntry *models2.LedgerEntry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
func (*Repo) CreateSchema ¶
func (*Repo) DeleteLedgerEntry ¶
func (repo *Repo) DeleteLedgerEntry(entry *models2.LedgerEntry) error
func (*Repo) FindAllLedgerEntries ¶
func (repo *Repo) FindAllLedgerEntries() ([]models2.LedgerEntry, error)
func (*Repo) FindBookingById ¶
func (*Repo) FindCustomerById ¶
func (*Repo) FindLedgerEntryByID ¶
func (repo *Repo) FindLedgerEntryByID(id string) (*models2.LedgerEntry, error)
func (*Repo) InitMigration ¶
func (*Repo) RunMigration ¶
func (*Repo) SaveLedgerEntry ¶
func (repo *Repo) SaveLedgerEntry(ledgerEntry *models2.LedgerEntry) error
Click to show internal directories.
Click to hide internal directories.