netHandler

package
v1.22.0 Latest Latest
Warning

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

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

README

netHandler

netHandler provides network host reachability checking via ping.

Functions

Function Description
CheckHostAvailability(addr string) (bool, error) Pings a host (platform-aware) and returns whether it is reachable

Example

import "github.com/mt1976/frantic-core/netHandler"

func main() {
    available, err := netHandler.CheckHostAvailability("192.168.1.1")
    if err != nil {
        log.Fatal(err)
    }
    fmt.Println("Host available:", available)
}

Documentation

Overview

Package netHandler provides HTTP/network helpers for client and server code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckHostAvailability

func CheckHostAvailability(addr string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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