Documentation
¶
Index ¶
- type CryptoRepository
- func (r *CryptoRepository) AssignAddress(model *domain.Crypto, address domain.Address) error
- func (r *CryptoRepository) FindOutdated(date time.Time, limit int) ([]*domain.Crypto, error)
- func (r *CryptoRepository) Get(user *domain2.User, currency domain.CryptoCurrency) *domain.Crypto
- func (r *CryptoRepository) UpdateBalance(model *domain.Crypto) error
- type SessionsRepository
- type UserRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoRepository ¶
type CryptoRepository struct {
// contains filtered or unexported fields
}
func NewCryptoRepository ¶
func NewCryptoRepository(db *pg.DB, log *zap.SugaredLogger) *CryptoRepository
func (*CryptoRepository) AssignAddress ¶
func (*CryptoRepository) FindOutdated ¶
func (*CryptoRepository) Get ¶
func (r *CryptoRepository) Get(user *domain2.User, currency domain.CryptoCurrency) *domain.Crypto
func (*CryptoRepository) UpdateBalance ¶
func (r *CryptoRepository) UpdateBalance(model *domain.Crypto) error
type SessionsRepository ¶
type SessionsRepository struct {
// contains filtered or unexported fields
}
func NewSessionsRepository ¶
func NewSessionsRepository(db *pg.DB) *SessionsRepository
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
func NewUserRepository ¶
func NewUserRepository(db *pg.DB) *UserRepository
func (*UserRepository) GetByExternalId ¶
Click to show internal directories.
Click to hide internal directories.