Documentation ¶
Index ¶
- Variables
- func InitMetrics()
- type Client
- func (hc *Client) GetAccountBalance(ctx context.Context, nv NetworkVersion, start, end time.Time, account string) (balances []shared.BalanceSummary, err error)
- func (hc *Client) GetRewardAPR(ctx context.Context, nv NetworkVersion, start, end time.Time, account string, ...) (aprs []shared.RewardAPRSummary, err error)
- func (hc *Client) GetRewards(ctx context.Context, nv NetworkVersion, start, end time.Time, account string, ...) ([]shared.RewardSummary, error)
- func (hc *Client) LatestData(ctx context.Context, ldr shared.LatestDataRequest) (ldResp shared.LatestDataResponse, er error)
- func (hc *Client) LinkSender(sender TaskSender)
- func (hc *Client) SyncData(ctx context.Context, ldr shared.SyncDataRequest) (ldResp shared.SyncDataResponse, er error)
- type ClientContractor
- type ControllContractor
- type NetworkVersion
- type PSig
- type ProcessLatestData
- type ProcessSyncData
- type Running
- type SearchApi
- type TaskSender
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIntegrityCheckFailed = errors.New("integrity check failed")
View Source
var ErrNotAvailable = errors.New("call unavailable")
View Source
var SelfCheck = true
SelfCheck Flag describing should manager check anyway the latest version for network it has
Functions ¶
func InitMetrics ¶
func InitMetrics()
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAccountBalance ¶ added in v0.1.0
func (hc *Client) GetAccountBalance(ctx context.Context, nv NetworkVersion, start, end time.Time, account string) (balances []shared.BalanceSummary, err error)
GetAccountBalance calculates balance summaries for 24h segments for given time range
func (*Client) GetRewardAPR ¶ added in v0.3.1
func (hc *Client) GetRewardAPR(ctx context.Context, nv NetworkVersion, start, end time.Time, account string, validators []string) (aprs []shared.RewardAPRSummary, err error)
GetRewardApr calculates reward annual percentage rate summaries for 24h segments for given time range
func (*Client) GetRewards ¶ added in v0.0.9
func (hc *Client) GetRewards(ctx context.Context, nv NetworkVersion, start, end time.Time, account string, validators []string) ([]shared.RewardSummary, error)
GetRewards calculates reward summaries for 24h segments for given time range
func (*Client) LatestData ¶ added in v0.4.0
func (hc *Client) LatestData(ctx context.Context, ldr shared.LatestDataRequest) (ldResp shared.LatestDataResponse, er error)
func (*Client) LinkSender ¶
func (hc *Client) LinkSender(sender TaskSender)
func (*Client) SyncData ¶ added in v0.4.0
func (hc *Client) SyncData(ctx context.Context, ldr shared.SyncDataRequest) (ldResp shared.SyncDataResponse, er error)
type ClientContractor ¶
type ClientContractor interface { // SchedulerContractor ControllContractor GetRewards(ctx context.Context, nv NetworkVersion, start, end time.Time, account string, validators []string) ([]shared.RewardSummary, error) GetAccountBalance(ctx context.Context, nv NetworkVersion, start, end time.Time, address string) (balances []shared.BalanceSummary, err error) GetRewardAPR(ctx context.Context, nv NetworkVersion, start, end time.Time, address string, validators []string) (aprs []shared.RewardAPRSummary, err error) }
ClientContractor a format agnostic
type ControllContractor ¶
type ControllContractor interface { LatestData(ctx context.Context, ldr shared.LatestDataRequest) (ldResp shared.LatestDataResponse, er error) SyncData(ctx context.Context, ldr shared.SyncDataRequest) (ldResp shared.SyncDataResponse, er error) }
type NetworkVersion ¶
type ProcessLatestData ¶ added in v0.4.0
type ProcessSyncData ¶ added in v0.4.0
type Running ¶ added in v0.4.0
type Running struct { ProcessesSyncData map[PSig]ProcessSyncData ProcessesLatestData map[PSig]ProcessLatestData // contains filtered or unexported fields }
func NewRunning ¶ added in v0.4.0
func NewRunning() *Running
type TaskSender ¶
type TaskSender interface {
Send([]structs.TaskRequest) (*structs.Await, error)
}
Click to show internal directories.
Click to hide internal directories.