Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
Types ¶
type ChartPoints ¶
type ChartPoints []interface{}
type DataStore ¶
type DataStore interface { VspTableName() string VspTickTableName() string StoreVSPs(context.Context, Response) (int, []error) LastVspTickEntryTime() (time time.Time) UpdateVspChart(ctx context.Context) error FetchVspSourcesForSync(ctx context.Context, lastID int64, skip, take int) ([]VSPDto, int64, error) FetchVspTicksForSync(ctx context.Context, lastID int64, skip, take int) ([]datasync.VSPTickSyncDto, int64, error) }
type PoolTickTimeExistsError ¶
func (PoolTickTimeExistsError) Error ¶
func (err PoolTickTimeExistsError) Error() string
type Response ¶
type Response map[string]*ResposeData
type ResposeData ¶
type ResposeData struct { APIEnabled bool `json:"APIEnabled"` APIVersionsSupported []int64 `json:"APIVersionsSupported"` Network string `json:"Network"` URL string `json:"URL"` Launched int64 `json:"Launched"` LastUpdated int64 `json:"LastUpdated"` Immature int `json:"Immature"` Live int `json:"Live"` Voted int `json:"Voted"` Missed int `json:"Missed"` PoolFees float64 `json:"PoolFees"` ProportionLive float64 `json:"ProportionLive"` ProportionMissed float64 `json:"ProportionMissed"` UserCount int `json:"UserCount"` UserCountActive int `json:"UserCountActive"` }
type VSPTickDto ¶
type VSPTickDto struct { ID int `json:"id"` VSP string `json:"vsp"` Immature int `json:"immature"` Live int `json:"live"` Voted int `json:"voted"` Missed int `json:"missed"` PoolFees float64 `json:"pool_fees"` ProportionLive string `json:"proportion_live"` ProportionMissed string `json:"proportion_missed"` UserCount int `json:"user_count"` UsersActive int `json:"users_active"` Time string `json:"time"` }
Click to show internal directories.
Click to hide internal directories.