utils

package
v0.0.0-...-22c913a Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAndAppend

func FindAndAppend(array []any, value any) []any

func FindAndAppendInt

func FindAndAppendInt(array []int, value int) []int

func FindAndDelete

func FindAndDelete(array []any, value any) []any

func FindAndDeleteInt

func FindAndDeleteInt(array []int, value int) []int

func FindExistInArray

func FindExistInArray(array []any, value any) (int, bool)

func FindExistInArrayInt

func FindExistInArrayInt(array []int, value int) (int, bool)

func FindMatchHostname

func FindMatchHostname(hostname string, https bool) string

func FindRuleEndpoint

func FindRuleEndpoint(hostname string, https bool) (types.RuleType, bool)

func GenerateSelfSignCert

func GenerateSelfSignCert()

func HttpGETRequest

func HttpGETRequest(fullURL string) (*http.Response, error)

func HttpJSONRequestWithBytesResponse

func HttpJSONRequestWithBytesResponse(method, fullURL, forwardFor string, header http.Header, requestData io.Reader) (*http.Response, error)

func IpInCidr

func IpInCidr(cidr, ip string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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