utils

package
v0.0.0-...-b6e34ba Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindCN

func FindCN(ip net.IP) (result *cnip.Result, err error)

FindCN

func LoadCNIpDB

func LoadCNIpDB(path string) (err error)

LoadCNIpDB load cnip db path

func ParseDurationOrDefault

func ParseDurationOrDefault(s string, defaultDuration time.Duration) time.Duration

*

  • Parse duration or return default

func PrivateIP

func PrivateIP(ip string) (bool, error)

Types

This section is empty.

Directories

Path Synopsis
tls
sni

Jump to

Keyboard shortcuts

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