Documentation ¶
Index ¶
- type ActorLoader
- type AlertLoader
- type ConfigLoader
- type Loader
- func (l *Loader) Actor(ctx context.Context, address types.Address) (*model.Actor, error)
- func (l *Loader) Actors(ctx context.Context) ([]*model.Actor, error)
- func (l *Loader) AggregateTaskHistory(ctx context.Context, startTime, endTime time.Time) ([]*TaskHistory, error)
- func (l *Loader) Alerts(ctx context.Context) ([]*model.Alert, error)
- func (l *Loader) Config(ctx context.Context, layer string) (*model.Config, error)
- func (l *Loader) ConfigUsed(ctx context.Context, layer string) ([]*model.MachineDetail, error)
- func (l *Loader) Configs(ctx context.Context) ([]*model.Config, error)
- func (l *Loader) Machine(ctx context.Context, id int) (*model.Machine, error)
- func (l *Loader) MachineByHostPort(ctx context.Context, hostPort string) (*model.Machine, error)
- func (l *Loader) MachineDetails(ctx context.Context) ([]*model.MachineDetail, error)
- func (l *Loader) MachineStorages(ctx context.Context, hostPort string) ([]*model.StoragePath, error)
- func (l *Loader) Machines(ctx context.Context) ([]*model.Machine, error)
- func (l *Loader) MiningSummaryByDay(ctx context.Context, start, end time.Time) ([]*model.MiningSummaryDay, error)
- func (l *Loader) OpenSectorPieces(ctx context.Context) ([]*model.OpenSectorPiece, error)
- func (l *Loader) Pipelines(ctx context.Context) ([]*model.Pipeline, error)
- func (l *Loader) PipelinesSummary(ctx context.Context) ([]*model.PipelineSummary, error)
- func (l *Loader) SectorEvents(ctx context.Context, actor types.ActorID, sectorNumber int) ([]*model.TaskHistory, error)
- func (l *Loader) SectorLocations(ctx context.Context, actor types.ActorID, sectorNumber int) ([]*model.SectorLocation, error)
- func (l *Loader) SectorMeta(ctx context.Context, actor types.ActorID, sectorNumber int) (*model.SectorMeta, error)
- func (l *Loader) SectorMetas(ctx context.Context, actor *types.ActorID, offset int, limit int) ([]*model.SectorMeta, error)
- func (l *Loader) SectorPieces(ctx context.Context, actor types.ActorID, sectorNumber int) ([]*model.SectorMetaPiece, error)
- func (l *Loader) SectorTasks(ctx context.Context, actor types.ActorID, sectorNumber int) ([]*model.Task, error)
- func (l *Loader) SectorsCount(ctx context.Context, actor *types.ActorID) (int, error)
- func (l *Loader) StoragePaths(ctx context.Context) ([]*model.StoragePath, error)
- func (l *Loader) StorageStats(ctx context.Context) ([]*model.StorageStats, error)
- func (l *Loader) SubAlerts(ctx context.Context, offset int) (<-chan *model.Alert, error)
- func (l *Loader) SubCompletedTask(ctx context.Context, hostPort *string, last int) (<-chan *model.TaskHistory, error)
- func (l *Loader) SubNewTask(ctx context.Context, hostID *int, last int) (<-chan *model.Task, error)
- func (l *Loader) Task(ctx context.Context, id int) (*model.Task, error)
- func (l *Loader) TaskAggregatesByDay(_ context.Context, start, end time.Time) ([]*model.TaskAggregate, error)
- func (l *Loader) TaskAggregatesByHour(_ context.Context, start, end time.Time) ([]*model.TaskAggregate, error)
- func (l *Loader) TaskAggregatesByTask(_ context.Context, start, end time.Time) ([]*model.TaskNameAggregate, error)
- func (l *Loader) TaskHistories(ctx context.Context, offset int, limit int) ([]*model.TaskHistory, error)
- func (l *Loader) TaskHistoriesAggregate(ctx context.Context, start, end time.Time, ...) ([]*model.TaskAggregate, error)
- func (l *Loader) TaskHistoriesCount(ctx context.Context, start, end time.Time, machine, name *string, ...) (int, error)
- func (l *Loader) Tasks(ctx context.Context) ([]*model.Task, error)
- func (l *Loader) TasksCount(ctx context.Context) (int, error)
- type MachineLoader
- type PipelineLoader
- type SectorLoader
- type StorageLoader
- type TaskHistory
- type TaskHistoryLoader
- type TaskLoader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActorLoader ¶
type AlertLoader ¶
type ConfigLoader ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (*Loader) AggregateTaskHistory ¶
func (*Loader) ConfigUsed ¶
func (*Loader) MachineByHostPort ¶ added in v0.0.4
func (*Loader) MachineDetails ¶
func (*Loader) MachineStorages ¶ added in v0.0.4
func (*Loader) MiningSummaryByDay ¶
func (*Loader) OpenSectorPieces ¶
func (*Loader) PipelinesSummary ¶
func (*Loader) SectorEvents ¶
func (*Loader) SectorLocations ¶
func (*Loader) SectorMeta ¶
func (*Loader) SectorMetas ¶
func (*Loader) SectorPieces ¶
func (*Loader) SectorTasks ¶
func (*Loader) SectorsCount ¶
func (*Loader) StoragePaths ¶
func (*Loader) StorageStats ¶
func (*Loader) SubCompletedTask ¶
func (*Loader) SubNewTask ¶
func (*Loader) TaskAggregatesByDay ¶
func (*Loader) TaskAggregatesByHour ¶
func (*Loader) TaskAggregatesByTask ¶
func (*Loader) TaskHistories ¶
func (l *Loader) TaskHistories(ctx context.Context, offset int, limit int) ([]*model.TaskHistory, error)
TaskHistories is the resolver for the taskHistories field.
func (*Loader) TaskHistoriesAggregate ¶ added in v0.0.2
func (l *Loader) TaskHistoriesAggregate(ctx context.Context, start, end time.Time, interval model.TaskHistoriesAggregateInterval) ([]*model.TaskAggregate, error)
type MachineLoader ¶
type MachineLoader interface { Machine(ctx context.Context, id int) (*model.Machine, error) MachineByHostPort(ctx context.Context, hostPort string) (*model.Machine, error) Machines(ctx context.Context) ([]*model.Machine, error) MachineDetails(ctx context.Context) ([]*model.MachineDetail, error) MachineStorages(ctx context.Context, hostPort string) ([]*model.StoragePath, error) }
type PipelineLoader ¶
type SectorLoader ¶
type SectorLoader interface { SectorMetas(ctx context.Context, actor *types.ActorID, offset int, limit int) ([]*model.SectorMeta, error) SectorMeta(ctx context.Context, actor types.ActorID, sectorNumber int) (*model.SectorMeta, error) SectorsCount(ctx context.Context, actor *types.ActorID) (int, error) SectorLocations(ctx context.Context, actor types.ActorID, sectorNumber int) ([]*model.SectorLocation, error) SectorPieces(ctx context.Context, actor types.ActorID, sectorNumber int) ([]*model.SectorMetaPiece, error) SectorEvents(ctx context.Context, actor types.ActorID, sectorNumber int) ([]*model.TaskHistory, error) SectorTasks(ctx context.Context, actor types.ActorID, sectorNumber int) ([]*model.Task, error) }
type StorageLoader ¶
type StorageLoader interface { StoragePaths(ctx context.Context) ([]*model.StoragePath, error) StorageStats(ctx context.Context) ([]*model.StorageStats, error) }
type TaskHistory ¶
type TaskHistoryLoader ¶
type TaskHistoryLoader interface { TaskHistories(ctx context.Context, offset int, limit int) ([]*model.TaskHistory, error) SubCompletedTask(ctx context.Context, hostPort *string, last int) (<-chan *model.TaskHistory, error) TaskHistoriesCount(ctx context.Context, start, end time.Time, name *string) (int, error) }
Click to show internal directories.
Click to hide internal directories.