Skip to main content

types.go

types.go - Overview

This file defines platform-independent types for representing I/O multiplexing events and operations.

Detailed Documentation

type Event

type Event struct {
Fd int
Op Operations
}

Purpose: Represents a platform-independent I/O multiplexing event.

Fields:

  • Fd: The file descriptor (type int).
  • Op: The operations to be monitored on the file descriptor (type Operations).

type Operations

type Operations uint32

Purpose: Represents platform-independent operations to be monitored on a file descriptor.

Type: uint32

Getting Started Relevance: NO