netut

package module
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 7 Imported by: 2

README

netut

Network Utilities

  • http client
  • https server
  • certificate tools
  • tcp client/server
  • udp client/server
  • IP tools
    • Retrieve IP
    • Parse IP
    • Get Local IP
    • Ping
    • IPv4
    • IPv6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalIP

func GetLocalIP(doesNotStartWith []string) string

func ParseIPs

func ParseIPs(ipAddresses []string) ([]string, []net.IP, error)

Parse and set Domain/IP's passed in

func Ping

func Ping(server string) (bool, error)

func RetrieveIP

func RetrieveIP() (string, error)

RetrieveIP retrieve system ipv4 address

Types

type Client

type Client interface {
	Client(contype string, hostAr []string, proxy string) *[]Host
}

type Host

type Host struct {
	IP       string
	Port     string
	URL      string
	Pass     bool
	Protocol string
}

Host stores parts of a Server for network communication

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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