events

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Events

type Events struct {
	// List is triggered when a remote listing was completed successfully
	List *topics.Topic[simpleblob.BlobList]

	// LastSeenSnapshotByInstance when we have determined the latest snapshot
	// per instance. If an instance no longer has any snapshots, it will
	// disappear from the map.
	LastSeenSnapshotByInstance *topics.Topic[map[string]snapshot.NameInfo]

	// UpdateLoaded is triggered when an update is successfully loaded into
	// the LMDB.
	UpdateLoaded *topics.Topic[UpdateInfo]

	// UpdateStored is triggered when we successfully uploaded a snapshot.
	UpdateStored *topics.Topic[UpdateInfo]

	// SnapshotOverdue is triggered when we force a snapshot due to a
	// forced snapshot interval.
	SnapshotOverdue *topics.Topic[struct{}]
}

Events contains event topics that can be subscribed to.

func New

func New() *Events

New returns an initialized Events struct

type UpdateInfo

type UpdateInfo struct {
	NameInfo snapshot.NameInfo
	Meta     snapshot.Meta
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL