net

package
v0.0.0-...-efce701 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package net provides network utils.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fqdn

func Fqdn(hostname string) string

Fqdn returns the FQDN for the host if any (this uses a DNS forward and reverse round trip).

func IsUDSAvailable

func IsUDSAvailable(path string) bool

IsUDSAvailable checks if the given path refers to an existing Unix domain socket that the current process can write to. This is intended for verifying that a DogStatsD UDS datagram socket is ready to receive data.

It checks three things:

  1. The path exists on disk.
  2. The file is a socket.
  3. The current process has write permission.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL