Documentation ¶
Overview ¶
Package broadcasts contains code for a Fleetspeak server to manage broadcasts. See in particular the Manager.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
A Manager keeps tracts of the active broadcasts in a system. It allows a fleetspeak system to deliver broadcasts to client without all of the fleetspeak servers trying to modify the same datastore records at the same time.
func MakeManager ¶
func MakeManager(ctx context.Context, bs db.BroadcastStore, pw time.Duration, clientCache *cache.Clients, dispatcher *notifications.Dispatcher) (*Manager, error)
MakeManager creates a Manager, populates it with the current set of broadcasts, and begins updating the broadcasts in the background, the time between updates is always between pw and 2*pw.
Click to show internal directories.
Click to hide internal directories.