Documentation
¶
Index ¶
- type App
- func (a *App) ApplyDirectorySnapshot(ctx context.Context, snapshot domain.DirectorySnapshot, ...) (aggregate.DirectoryApplyResult, error)
- func (a *App) ApplyDirectorySnapshotAt(ctx context.Context, snapshot domain.DirectorySnapshot, ...) (aggregate.DirectoryApplyResult, error)
- func (a *App) ClearDirectory(ctx context.Context) (bool, error)
- func (a *App) ClearDirectoryAt(ctx context.Context, updatedAt time.Time) (bool, error)
- func (a *App) DeviceDirectory() domain.DeviceDirectory
- func (a *App) EdgeHistory(ctx context.Context, edgeID string) (domain.EdgeHistory, error)
- func (a *App) EdgeHistoryWindow(ctx context.Context, edgeID string, window domain.HistoryWindow, ...) (domain.EdgeHistory, bool, error)
- func (a *App) HistoryEdges(ctx context.Context, query domain.HistoryEdgeQuery) (domain.HistoryEdgePage, error)
- func (a *App) HistoryNodes(ctx context.Context, window domain.HistoryWindow, includeSystemTelemetry bool) (domain.HistoryNodes, error)
- func (a *App) Maintain(ctx context.Context, now time.Time) error
- func (a *App) RunMaintenance(ctx context.Context)
- func (a *App) StoreRetention() time.Duration
- func (a *App) Submit(ctx context.Context, report domain.ReportEnvelope) (domain.ReportReceipt, error)
- func (a *App) SubmitAt(ctx context.Context, report domain.ReportEnvelope, receivedAt time.Time) (domain.ReportReceipt, error)
- func (a *App) UpdateDirectorySyncState(ctx context.Context, syncState domain.DirectorySyncState) error
- func (a *App) UpdateDirectorySyncStateAt(ctx context.Context, syncState domain.DirectorySyncState, updatedAt time.Time) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
Aggregator *aggregate.Aggregator
Store *store.SQLite
// contains filtered or unexported fields
}
func (*App) ApplyDirectorySnapshot ¶ added in v0.5.0
func (a *App) ApplyDirectorySnapshot( ctx context.Context, snapshot domain.DirectorySnapshot, syncState domain.DirectorySyncState, ) (aggregate.DirectoryApplyResult, error)
func (*App) ApplyDirectorySnapshotAt ¶ added in v0.5.0
func (a *App) ApplyDirectorySnapshotAt( ctx context.Context, snapshot domain.DirectorySnapshot, syncState domain.DirectorySyncState, updatedAt time.Time, ) (aggregate.DirectoryApplyResult, error)
func (*App) ClearDirectory ¶ added in v0.5.0
func (*App) ClearDirectoryAt ¶ added in v0.5.0
func (*App) DeviceDirectory ¶ added in v0.5.0
func (a *App) DeviceDirectory() domain.DeviceDirectory
func (*App) EdgeHistory ¶
func (*App) EdgeHistoryWindow ¶
func (*App) HistoryEdges ¶
func (a *App) HistoryEdges(ctx context.Context, query domain.HistoryEdgeQuery) (domain.HistoryEdgePage, error)
func (*App) HistoryNodes ¶
func (a *App) HistoryNodes(ctx context.Context, window domain.HistoryWindow, includeSystemTelemetry bool) (domain.HistoryNodes, error)
func (*App) RunMaintenance ¶
func (*App) StoreRetention ¶
func (*App) Submit ¶
func (a *App) Submit(ctx context.Context, report domain.ReportEnvelope) (domain.ReportReceipt, error)
func (*App) SubmitAt ¶
func (a *App) SubmitAt(ctx context.Context, report domain.ReportEnvelope, receivedAt time.Time) (domain.ReportReceipt, error)
func (*App) UpdateDirectorySyncState ¶ added in v0.5.0
func (*App) UpdateDirectorySyncStateAt ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.