Documentation
¶
Index ¶
- type Client
- func (c *Client) ReportProgress(metrics ProgressMetrics)
- func (c *Client) ReportTestComplete(ctx context.Context, req TestCompleteRequest) error
- func (c *Client) ReportTestKeepAlive(ctx context.Context, req TestKeepaliveRequest) error
- func (c *Client) Start(ctx context.Context)
- func (c *Client) Stop()
- type ClientConfig
- type ProgressMetrics
- type ProgressUpdateRequest
- type TestCompleteRequest
- type TestKeepaliveRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ReportProgress ¶
func (c *Client) ReportProgress(metrics ProgressMetrics)
func (*Client) ReportTestComplete ¶
func (c *Client) ReportTestComplete(ctx context.Context, req TestCompleteRequest) error
func (*Client) ReportTestKeepAlive ¶
func (c *Client) ReportTestKeepAlive(ctx context.Context, req TestKeepaliveRequest) error
Main reporting methods
type ClientConfig ¶
type ProgressMetrics ¶
type ProgressMetrics struct {
Block uint64 `json:"block"`
Slot uint64 `json:"slot"`
ExecDiskUsage uint64 `json:"exec_disk_usage"`
ConsDiskUsage uint64 `json:"cons_disk_usage"`
ExecPeers uint64 `json:"exec_peers"`
ConsPeers uint64 `json:"cons_peers"`
ExecSyncPercent float64 `json:"exec_sync_percent"`
ConsSyncPercent float64 `json:"cons_sync_percent"`
ExecVersion string `json:"exec_version,omitempty"`
ConsVersion string `json:"cons_version,omitempty"`
}
type ProgressUpdateRequest ¶
type ProgressUpdateRequest struct {
Timestamp int64 `json:"timestamp"`
Metrics ProgressMetrics `json:"metrics"`
IsComplete bool `json:"is_complete"`
}
type TestCompleteRequest ¶
type TestKeepaliveRequest ¶
type TestKeepaliveRequest struct {
RunID string `json:"run_id"`
Timestamp int64 `json:"timestamp"`
Network string `json:"network"`
Labels map[string]string `json:"labels,omitempty"`
ELClient ClientConfig `json:"el_client"`
CLClient ClientConfig `json:"cl_client"`
EnclaveName string `json:"enclave_name"`
SystemInfo *sysinfo.SystemInfo `json:"system_info,omitempty"`
RunTimeout int64 `json:"run_timeout,omitempty"`
}
TestKeepaliveRequest represents a keepalive request to maintain test connection
Click to show internal directories.
Click to hide internal directories.