cloudflare

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRequestIP

func CheckRequestIP(req *http.Request) bool

CheckRequestIP returns TRUE if the remote IP in an http.Request is from an Cloudflare IP range

func GetIpRanges

func GetIpRanges() (ranges []string, err error)

func GetIpRangesV4

func GetIpRangesV4() (ranges []string, err error)

GetIpRangesV4 retrieves Cloudflare IPv4 ranges and returns the results

func GetIpRangesV6

func GetIpRangesV6() (ranges []string, err error)

GetIpRangesV6 retrieves Cloudflare IPv6 ranges and returns the results

func Init

func Init()

Init retrieves the latest IP range list from Cloudflare's service and enables developers to have control over when in their application lifecycle to perform network operations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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