Documentation ¶
Overview ¶
Package notifier implements an FD notifier implementation over RPC.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier holds all the state necessary to issue notifications when IO events occur in the observed FDs.
func NewRPCNotifier ¶
func NewRPCNotifier(cn *conn.RPCConnection) (*Notifier, error)
NewRPCNotifier creates a new notifier object.
func (*Notifier) HasFD ¶
HasFD returns true if the FD is in the list of observed FDs.
This should only be used by tests to assert that FDs are correctly registered.
func (*Notifier) NonBlockingPoll ¶
NonBlockingPoll polls the given fd in non-blocking fashion. It is used just to query the FD's current state; this method will block on the RPC response although the syscall is non-blocking.
Click to show internal directories.
Click to hide internal directories.