activitytracker

package
v1.0.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewEvents = event.CreateGroupConstructor(func() (newEvents *Events) {
	return &Events{
		OnlineCommitteeSeatAdded:   event.New2[account.SeatIndex, iotago.AccountID](),
		OnlineCommitteeSeatRemoved: event.New1[account.SeatIndex](),
	}
})

NewEvents contains the constructor of the Events object (it is generated by a generic factory).

Functions

This section is empty.

Types

type ActivityTracker

type ActivityTracker interface {
	OnlineCommittee() ds.Set[account.SeatIndex]
	MarkSeatActive(seat account.SeatIndex, id iotago.AccountID, seatActivityTime time.Time)
}

type Events

type Events struct {
	OnlineCommitteeSeatAdded   *event.Event2[account.SeatIndex, iotago.AccountID]
	OnlineCommitteeSeatRemoved *event.Event1[account.SeatIndex]

	event.Group[Events, *Events]
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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