localnet

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package localnet recognizes database endpoints that never leave the host.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Host

func Host(host string) bool

Host reports whether host names this machine: "localhost", a loopback IP address, or a Unix socket path. Nothing off the host can observe traffic to it, so transport encryption there protects nothing and adapters admit plaintext without an explicit override.

func HostPort

func HostPort(address string) bool

HostPort is Host for a "host:port" address; an address without a port is read as a bare host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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