Documentation ¶
Index ¶
- type ConnectionError
- type Database
- func (db *Database) AddCrowdfundCampaign(campaign *entity.CrowdfundCampaign) error
- func (db *Database) AddCrowdfundPurchase(purchase *entity.CrowdfundPurchase) error
- func (db *Database) AddFaucet(f *entity.PhoenixFaucet) error
- func (db *Database) AddNotification(v *entity.Notification) error
- func (db *Database) AddUser(u *entity.User) error
- func (db *Database) AddVoucher(v *entity.Voucher) error
- func (db *Database) AddZealyUser(u *entity.ZealyUser) error
- func (db *Database) CanGetFaucet(user *entity.User) bool
- func (db *Database) ClaimVoucher(id uint, txHash string, claimer uint) error
- func (db *Database) GetAllZealyUser() ([]*entity.ZealyUser, error)
- func (db *Database) GetCrowdfundActiveCampaign() *entity.CrowdfundCampaign
- func (db *Database) GetCrowdfundCampaign(campaignID uint) (*entity.CrowdfundCampaign, error)
- func (db *Database) GetCrowdfundPurchases(userID uint) ([]*entity.CrowdfundPurchase, error)
- func (db *Database) GetPendingMailNotification() (*entity.Notification, error)
- func (db *Database) GetUserByPlatformID(appID entity.PlatformID, callerID string) (*entity.User, error)
- func (db *Database) GetVoucherByCode(code string) (entity.Voucher, error)
- func (db *Database) GetZealyUser(id string) (*entity.ZealyUser, error)
- func (db *Database) HasUser(id uint) bool
- func (db *Database) ListVoucher() ([]*entity.Voucher, error)
- func (db *Database) UpdateCrowdfundPurchase(purchase *entity.CrowdfundPurchase) error
- func (db *Database) UpdateNotificationStatus(id uint, status entity.NotificationStatus) error
- func (db *Database) UpdateZealyUser(id, txHash string) error
- type MigrationError
- type ReadError
- type WriteError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionError ¶
type ConnectionError struct {
Message string
}
func (ConnectionError) Error ¶
func (e ConnectionError) Error() string
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func (*Database) AddCrowdfundCampaign ¶ added in v0.0.3
func (db *Database) AddCrowdfundCampaign(campaign *entity.CrowdfundCampaign) error
func (*Database) AddCrowdfundPurchase ¶ added in v0.0.4
func (db *Database) AddCrowdfundPurchase(purchase *entity.CrowdfundPurchase) error
func (*Database) AddNotification ¶
func (db *Database) AddNotification(v *entity.Notification) error
func (*Database) ClaimVoucher ¶
func (*Database) GetAllZealyUser ¶
func (*Database) GetCrowdfundActiveCampaign ¶ added in v0.0.4
func (db *Database) GetCrowdfundActiveCampaign() *entity.CrowdfundCampaign
func (*Database) GetCrowdfundCampaign ¶ added in v0.0.3
func (db *Database) GetCrowdfundCampaign(campaignID uint) (*entity.CrowdfundCampaign, error)
func (*Database) GetCrowdfundPurchases ¶ added in v0.0.4
func (db *Database) GetCrowdfundPurchases(userID uint) ([]*entity.CrowdfundPurchase, error)
func (*Database) GetPendingMailNotification ¶
func (db *Database) GetPendingMailNotification() (*entity.Notification, error)
func (*Database) GetUserByPlatformID ¶
func (*Database) GetVoucherByCode ¶
func (*Database) GetZealyUser ¶
func (*Database) UpdateCrowdfundPurchase ¶ added in v0.0.4
func (db *Database) UpdateCrowdfundPurchase(purchase *entity.CrowdfundPurchase) error
func (*Database) UpdateNotificationStatus ¶
func (db *Database) UpdateNotificationStatus(id uint, status entity.NotificationStatus) error
func (*Database) UpdateZealyUser ¶
type MigrationError ¶
type MigrationError struct {
Message string
}
func (MigrationError) Error ¶
func (e MigrationError) Error() string
type WriteError ¶
type WriteError struct {
Message string
}
func (WriteError) Error ¶
func (e WriteError) Error() string
Click to show internal directories.
Click to hide internal directories.