Documentation
¶
Index ¶
- func SetAccountPayments(db *leveldb.DB, respAccountPayments RespAccountPayments) error
- func SetAccountSite(db *leveldb.DB, respAccountSite RespAccountSite) error
- func SetAccountStats(db *leveldb.DB, respAccountStats RespAccountStats) error
- func SetHashes(db *leveldb.DB, respHashes RespHashes) error
- func SetPayout1MHash(db *leveldb.DB, respPayout RespPayout) error
- func SetReward(db *leveldb.DB, respReward RespReward) error
- func SetSiteStats(db *leveldb.DB, respSiteStats RespSiteStats) error
- type Coin
- type Config
- type MainConfig
- type Payments
- type Payout
- type RespAccountPayments
- type RespAccountSite
- type RespAccountStats
- type RespHashes
- type RespPayout
- type RespReward
- type RespSiteStats
- type Site
- type SiteData
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetAccountPayments ¶
func SetAccountPayments(db *leveldb.DB, respAccountPayments RespAccountPayments) error
func SetAccountSite ¶
func SetAccountSite(db *leveldb.DB, respAccountSite RespAccountSite) error
func SetAccountStats ¶
func SetAccountStats(db *leveldb.DB, respAccountStats RespAccountStats) error
func SetPayout1MHash ¶
func SetPayout1MHash(db *leveldb.DB, respPayout RespPayout) error
func SetSiteStats ¶
func SetSiteStats(db *leveldb.DB, respSiteStats RespSiteStats) error
Types ¶
type Config ¶
type Config struct {
Main MainConfig `toml:"main"`
}
type MainConfig ¶
type MainConfig struct { Curl string `toml:"curl"` URL string `toml:"url"` SiteKey string `toml:"site-key"` APIPublic string `toml:"api-public"` APIPrivate string `toml:"api-private"` Schedule string `toml:"schedule"` Sleep int `toml:"sleep"` }
MainConfig ...
type RespAccountPayments ¶
type RespAccountPayments struct { Message []Payments `json:"message"` Status string `json:"status"` }
func AccountPayments ¶
func AccountPayments(conf Config, coin Coin) (RespAccountPayments, error)
func GetAccountPayments ¶
func GetAccountPayments(db *leveldb.DB) (RespAccountPayments, error)
type RespAccountSite ¶
func AccountSite ¶
func AccountSite(conf Config, coin Coin) (RespAccountSite, error)
func GetAccountSite ¶
func GetAccountSite(db *leveldb.DB) (RespAccountSite, error)
type RespAccountStats ¶
func AccountStats ¶
func AccountStats(conf Config, coin Coin) (RespAccountStats, error)
func GetAccountStats ¶
func GetAccountStats(db *leveldb.DB) (RespAccountStats, error)
type RespHashes ¶
type RespPayout ¶
func GetPayout1MHash ¶
func GetPayout1MHash(db *leveldb.DB) (RespPayout, error)
func Payout1MHash ¶
func Payout1MHash(conf Config, coin Coin) (RespPayout, error)
type RespReward ¶
type RespSiteStats ¶
func GetSiteStats ¶
func GetSiteStats(db *leveldb.DB) (RespSiteStats, error)
func SiteStats ¶
func SiteStats(conf Config) (RespSiteStats, error)
Click to show internal directories.
Click to hide internal directories.