networking

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

This package is used to provide networking functionality to a package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filter

func Filter(r *http.Request, CIDRRange []string) bool

Use: Filter |DESCRIPTION| Check if IP address from request is in the list of allowed IP addresses |ARGS| r (http.Request), CIDRRange ([]string)

func GetAllLocalAddresses

func GetAllLocalAddresses() ([]string, error)

func GetLocalAddress

func GetLocalAddress() string

func GetRequestIPAddress

func GetRequestIPAddress(r *http.Request) string

Use: GetRequestIPAddress |DESCRIPTION| Retrieve the IP address from the request |ARGS| r (http.Request)

func GetURI

func GetURI(r *http.Request, query string) string

Use: GetURI |DESCRIPTION| Retrieve the URI from the request |ARGS| r (http.Request), query (string | base, scheme+base, protocol, path, full)

Types

This section is empty.

Jump to

Keyboard shortcuts

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