Help us shape the future of Go! Take the 2026 Go Developer Survey

localhost

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package localhost describes this machine as a host and probes local HTTP endpoints; runtimes that run on this machine (local processes, docker) embed Host.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Probe

func Probe(ctx context.Context, url string) bool

Probe reports whether url answers with a status below 500.

Types

type Host

type Host struct{}

func (Host) Hosts

func (Host) Hosts(ctx context.Context) ([]core.Host, error)

func (Host) Shell

func (Host) Shell(ctx context.Context, _ string, command []string) (*exec.Cmd, error)

Jump to

Keyboard shortcuts

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