Categorygithub.com/io1o/go-winio
modulepackage
0.4.15
Repository: https://github.com/io1o/go-winio.git
Documentation: pkg.go.dev

# README

go-winio

This repository contains utilities for efficiently performing Win32 IO operations in Go. Currently, this is focused on accessing named pipes and other file handles, and for using named pipes as a net transport.

This code relies on IO completion ports to avoid blocking IO on system threads, allowing Go to reuse the thread to schedule another goroutine. This limits support to Windows Vista and newer operating systems. This is similar to the implementation of network sockets in Go's net package.

Please see the LICENSE file for licensing information.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Thanks to natefinch for the inspiration for this library. See https://github.com/natefinch/npipe for another named pipe implementation.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package wim implements a WIM file parser.

# Functions

DecodeExtendedAttributes decodes a list of EAs from a FILE_FULL_EA_INFORMATION buffer retrieved from BackupRead, ZwQueryEaFile, etc.
DecodeReparsePoint decodes a Win32 REPARSE_DATA_BUFFER structure containing either a symlink or a mount point.
No description provided by the author
EncodeExtendedAttributes encodes a list of EAs into a FILE_FULL_EA_INFORMATION buffer for use with BackupWrite, ZwSetEaFile, etc.
EncodeReparsePoint encodes a Win32 REPARSE_DATA_BUFFER structure describing a symlink or mount point.
ListenHvsock listens for connections on the specified hvsock address.
VsockServiceID returns an hvsock service ID corresponding to the specified AF_VSOCK port.

# Structs

ExtendedAttribute represents a single Windows EA.
An HvsockAddr is an address for a AF_HYPERV socket.
HvsockConn is a connected socket of the AF_HYPERV address family.
HvsockListener is a socket listener for the AF_HYPERV address family.
ReparsePoint describes a Win32 symlink or mount point.
UnsupportedReparsePointError is returned when trying to decode a non-symlink or mount point reparse point.