ip

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValid

func IsValid(ip string) bool

IsValid ip address.

func NewDB

func NewDB(lc fx.Lifecycle, cfg *Config) (*ip2location.DB, error)

NewDB for ip.

Types

type Config

type Config struct {
	Path string `yaml:"path"`
}

Config for ip.

Jump to

Keyboard shortcuts

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