storage

package
v0.0.0-...-0ea5254 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	GetAccounts() ([]*model.Account, error)
	GetAccountsFromCustomer(int) ([]*model.Account, error)
	GetAccountByID(int) (*model.Account, error)
	CreateAccount(*model.Account) error
	DeleteAccount(int) error
	UpdateAccount(*model.Account) error

	GetCustomers() ([]*model.Customer, error)
	GetCustomerByEmail(string) (*model.Customer, error)
	GetCustomerByID(int) (*model.Customer, error)
	CreateCustomer(*model.Customer) error
	DeleteCustomer(int) error
	UpdateCustomer(*model.Customer) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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