package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev

# Functions

GetWaiter returns an unused Waiter.
PutWaiter releases an unused Waiter previously returned by GetWaiter.
UnsubscribeAndAck is a convenience function that unsubscribes r from the given events from src and also clears them from r.

# Constants

AllEvents is a Set containing all possible events.
MaxEvents is the number of distinct events that can be represented by a Set.
NoEvents is a Set containing no events.

# Structs

Broadcaster is an implementation of Source that supports any number of subscribed Receivers.
NoopSource implements Source by never sending events to subscribed Receivers.
Receiver is an event sink that holds pending events and invokes a callback whenever new events become pending.
Waiter allows a goroutine to block on pending events received by a Receiver.

# Interfaces

ReceiverCallback receives callbacks from a Receiver.
Source represents an event source.

# Type aliases

Set is a bitmask where each bit represents a distinct user-defined event.
SubscriptionID identifies a call to Source.SubscribeEvents.