Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Cryptor ¶
func NewCryptor ¶
func NewCryptor() Cryptor
type Deal ¶
type Inventory ¶
type Inventory interface { GetByID(id int) (*models.InventoryItem, error) GetUserInventory(userID int) ([]models.InventoryItem, error) GetUserInventoryBySecurityID(userID int, securityID int) (*models.InventoryItem, error) Withdraw(ownerID, securityID, amount uint) (*models.InventoryItem, error) Add(ownerID, securityID, amount uint) (*models.InventoryItem, error) Patch(item *models.InventoryItem) (*models.InventoryItem, error) Delete(id int) error }
type Security ¶
func NewSecurity ¶
type Transaction ¶
type Transaction interface { Get(userID int) ([]models.Transaction, error) Add(t *models.Transaction) (*models.Transaction, error) }
func NewTransaction ¶
func NewTransaction(tr repo.Transaction) Transaction
Click to show internal directories.
Click to hide internal directories.