Documentation
¶
Index ¶
Constants ¶
View Source
const ( NotificationStatusPending = iota NotificationStatusDone NotificationStatusFail )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzbitPriceResponse ¶
type AzbitPriceResponse struct { Timestamp int `json:"timestamp"` CurrencyPairCode string `json:"currencyPairCode"` Price float64 `json:"price"` Price24HAgo float64 `json:"price24hAgo"` PriceChangePercentage24H float64 `json:"priceChangePercentage24h"` Volume24H float64 `json:"volume24h"` BidPrice float64 `json:"bidPrice"` AskPrice float64 `json:"askPrice"` Low24H float64 `json:"low24h"` High24H float64 `json:"high24h"` }
type Notification ¶
type Notification struct { ID uint `gorm:"primaryKey;unique"` Type notification.NotificationType `gorm:"size:2"` Recipient string `gorm:"size:255"` Data datatypes.JSON Status NotificationStatus `gorm:"size:2"` gorm.Model }
type NotificationStatus ¶
type NotificationStatus int
type PhoenixFaucet ¶
type PhoenixFaucet struct { ID uint `gorm:"primaryKey;unique"` UserID uint `gorm:"size:255"` Address string Amount amount.Amount `gorm:"column:amount"` TransactionHash string gorm.Model }
func (*PhoenixFaucet) ElapsedTime ¶
func (f *PhoenixFaucet) ElapsedTime() time.Duration
func (*PhoenixFaucet) TableName ¶
func (*PhoenixFaucet) TableName() string
type Price ¶
type Price struct { XeggexPacToUSDT XeggexPriceResponse AzbitPacToUSDT AzbitPriceResponse }
type Voucher ¶
type VoucherNotificationData ¶
type XeggexPriceResponse ¶
type XeggexPriceResponse struct { LastPrice string `json:"lastPrice"` YesterdayPrice string `json:"yesterdayPrice"` HighPrice string `json:"highPrice"` LowPrice string `json:"lowPrice"` Volume string `json:"volume"` Decimal int `json:"priceDecimals"` BestAsk string `json:"bestAsk"` BestBid string `json:"bestBid"` SpreadPercent string `json:"spreadPercent"` ChangePercent string `json:"changePercent"` MarketCap float64 `json:"marketcapNumber"` }
Click to show internal directories.
Click to hide internal directories.