Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deal ¶
type Deal interface { GetAllByID(id int) (*models.Deal, error) GetByID(id int) (*models.Deal, error) Get() ([]models.Deal, error) GetByUserIDAndSecurityID(userID, securityID int) (*models.Deal, error) Create(deal *models.Deal) (*models.Deal, error) Patch(deal *models.Deal) (*models.Deal, error) Delete(id int) error }
type Inventory ¶
type Inventory interface { GetByID(id int) (*models.InventoryItem, error) GetByUserID(userID int) ([]models.InventoryItem, error) GetUserInventoryBySecurityID(userID int, securityID int) (*models.InventoryItem, error) Patch(item *models.InventoryItem) (*models.InventoryItem, error) Save(item *models.InventoryItem) error Delete(id int) error }
func NewInventory ¶
type Security ¶
func NewSecurity ¶
type Session ¶
type Session interface { Create(u *models.User) (*models.Session, error) GetByID(id uint) (*models.Session, error) }
func NewSession ¶
type Transaction ¶
type Transaction interface { Get(userID int) ([]models.Transaction, error) Add(t *models.Transaction) (*models.Transaction, error) }
func NewTransaction ¶
func NewTransaction(db *gorm.DB, irepo Inventory) Transaction
Click to show internal directories.
Click to hide internal directories.