Documentation
¶
Index ¶
- func Routes(r *mux.Router, deps *deps.Deps)
- type HarmonyMachineDesc
- type HarmonyTaskHistory
- type HarmonyTaskStats
- type RpcInfo
- type StorageGCMarks
- type StorageGCStats
- type StorageUseStats
- type WebRPC
- func (a *WebRPC) BlockDelaySecs(context.Context) (uint64, error)
- func (a *WebRPC) HarmonyTaskHistory(ctx context.Context, taskName string) ([]HarmonyTaskHistory, error)
- func (a *WebRPC) HarmonyTaskMachines(ctx context.Context, taskName string) ([]HarmonyMachineDesc, error)
- func (a *WebRPC) HarmonyTaskStats(ctx context.Context) ([]HarmonyTaskStats, error)
- func (a *WebRPC) StorageGCApprove(ctx context.Context, actor int64, sectorNum int64, fileType int64, ...) error
- func (a *WebRPC) StorageGCApproveAll(ctx context.Context) error
- func (a *WebRPC) StorageGCMarks(ctx context.Context) ([]StorageGCMarks, error)
- func (a *WebRPC) StorageGCStats(ctx context.Context) ([]StorageGCStats, error)
- func (a *WebRPC) StorageGCUnapproveAll(ctx context.Context) error
- func (a *WebRPC) StorageUseStats(ctx context.Context) ([]StorageUseStats, error)
- func (a *WebRPC) SyncerState(ctx context.Context) ([]RpcInfo, error)
- func (a *WebRPC) Version(context.Context) (string, error)
- func (a *WebRPC) WinStats(ctx context.Context) ([]WinStats, error)
- type WinStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HarmonyMachineDesc ¶
type HarmonyTaskHistory ¶
type HarmonyTaskHistory struct {
TaskID int64 `db:"task_id"`
Name string `db:"name"`
WorkStart time.Time `db:"work_start"`
WorkEnd time.Time `db:"work_end"`
Posted time.Time `db:"posted"`
Result bool `db:"result"`
Err string `db:"err"`
CompletedBy string `db:"completed_by_host_and_port"`
CompletedById *int64 `db:"completed_by_machine"`
CompletedByName *string `db:"completed_by_machine_name"`
}
type HarmonyTaskStats ¶
type StorageGCMarks ¶
type StorageGCMarks struct {
Actor int64 `db:"sp_id"`
SectorNum int64 `db:"sector_num"`
FileType int64 `db:"sector_filetype"`
StorageID string `db:"storage_id"`
CreatedAt time.Time `db:"created_at"`
Approved bool `db:"approved"`
ApprovedAt *time.Time `db:"approved_at"`
// db ignored
TypeName string `db:"-"`
}
type StorageGCStats ¶
type StorageUseStats ¶
type WebRPC ¶
type WebRPC struct {
// contains filtered or unexported fields
}
func (*WebRPC) HarmonyTaskHistory ¶
func (*WebRPC) HarmonyTaskMachines ¶
func (*WebRPC) HarmonyTaskStats ¶
func (a *WebRPC) HarmonyTaskStats(ctx context.Context) ([]HarmonyTaskStats, error)
func (*WebRPC) StorageGCApprove ¶
func (*WebRPC) StorageGCApproveAll ¶
func (*WebRPC) StorageGCMarks ¶
func (a *WebRPC) StorageGCMarks(ctx context.Context) ([]StorageGCMarks, error)
func (*WebRPC) StorageGCStats ¶
func (a *WebRPC) StorageGCStats(ctx context.Context) ([]StorageGCStats, error)
func (*WebRPC) StorageGCUnapproveAll ¶
func (*WebRPC) StorageUseStats ¶
func (a *WebRPC) StorageUseStats(ctx context.Context) ([]StorageUseStats, error)
type WinStats ¶
type WinStats struct {
Actor int64 `db:"sp_id"`
Epoch int64 `db:"epoch"`
Block string `db:"mined_cid"`
TaskID int64 `db:"task_id"`
SubmittedAt *time.Time `db:"submitted_at"`
Included *bool `db:"included"`
BaseComputeTime *time.Time `db:"base_compute_time"`
MinedAt *time.Time `db:"mined_at"`
SubmittedAtStr string `db:"-"`
TaskSuccess string `db:"-"`
IncludedStr string `db:"-"`
ComputeTime string `db:"-"`
}
Click to show internal directories.
Click to hide internal directories.