asset

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAssetNetworks

func GetAssetNetworks(ip string) []string

GetAssetNetworks return the CIDR network that the IP is in

func GetName

func GetName(ip string) string

GetName returns the asset name

func GetValue

func GetValue(ip string) int

GetValue returns asset value

func Init

func Init(confDir string) error

Init read assets from all asset_* files in confDir

func IsInHomeNet

func IsInHomeNet(ip string) (bool, error)

IsInHomeNet check if IP is in HOME_NET

Types

This section is empty.

Jump to

Keyboard shortcuts

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