Documentation ¶
Index ¶
- func GetTokenByAddress(address string) *models.Token
- func GetTokens() []models.Token
- type PoolQueries
- func (pq *PoolQueries) CreatePool(pool models.Pool) (models.Pool, error)
- func (pq *PoolQueries) DeletePool(id int) error
- func (pq *PoolQueries) GetAllPools() ([]models.Pool, error)
- func (pq *PoolQueries) GetPoolByID(id int) (models.Pool, error)
- func (pq *PoolQueries) UpdatePool(pool models.Pool) (models.Pool, error)
- type TokenQueries
- type TransactionQueries
- func (tq *TransactionQueries) CreateTransaction(transaction models.Transaction) (models.Transaction, error)
- func (tq *TransactionQueries) DeleteTransaction(id int) error
- func (tq *TransactionQueries) GetAllTransactions() ([]models.Transaction, error)
- func (tq *TransactionQueries) GetTransactionByID(id int) (models.Transaction, error)
- func (tq *TransactionQueries) UpdateTransaction(transaction models.Transaction) (models.Transaction, error)
- type UserQueries
- func (uq *UserQueries) CreateUser(user models.User) (models.User, error)
- func (uq *UserQueries) DeleteUser(id int) error
- func (uq *UserQueries) GetAllUsers() ([]models.User, error)
- func (uq *UserQueries) GetUserByAddress(address string) (models.User, error)
- func (uq *UserQueries) GetUserByID(id int) (models.User, error)
- func (uq *UserQueries) UpdateUser(user models.User) (models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTokenByAddress ¶
Types ¶
type PoolQueries ¶
func (*PoolQueries) CreatePool ¶
func (*PoolQueries) DeletePool ¶
func (pq *PoolQueries) DeletePool(id int) error
func (*PoolQueries) GetAllPools ¶
func (pq *PoolQueries) GetAllPools() ([]models.Pool, error)
func (*PoolQueries) GetPoolByID ¶
func (pq *PoolQueries) GetPoolByID(id int) (models.Pool, error)
func (*PoolQueries) UpdatePool ¶
type TokenQueries ¶
type TokenQueries struct{}
type TransactionQueries ¶
func (*TransactionQueries) CreateTransaction ¶
func (tq *TransactionQueries) CreateTransaction(transaction models.Transaction) (models.Transaction, error)
func (*TransactionQueries) DeleteTransaction ¶
func (tq *TransactionQueries) DeleteTransaction(id int) error
func (*TransactionQueries) GetAllTransactions ¶
func (tq *TransactionQueries) GetAllTransactions() ([]models.Transaction, error)
func (*TransactionQueries) GetTransactionByID ¶
func (tq *TransactionQueries) GetTransactionByID(id int) (models.Transaction, error)
func (*TransactionQueries) UpdateTransaction ¶
func (tq *TransactionQueries) UpdateTransaction(transaction models.Transaction) (models.Transaction, error)
type UserQueries ¶
func (*UserQueries) CreateUser ¶
func (*UserQueries) DeleteUser ¶
func (uq *UserQueries) DeleteUser(id int) error
func (*UserQueries) GetAllUsers ¶
func (uq *UserQueries) GetAllUsers() ([]models.User, error)
func (*UserQueries) GetUserByAddress ¶
func (uq *UserQueries) GetUserByAddress(address string) (models.User, error)
func (*UserQueries) GetUserByID ¶
func (uq *UserQueries) GetUserByID(id int) (models.User, error)
func (*UserQueries) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.