Documentation
¶
Overview ¶
metafiles are metadata files related to networking like /etc/hosts etc
Index ¶
Constants ¶
View Source
const CommentChar string = "#"
View Source
const HostsFilePath = "/etc/hosts"
HostsFilePath in unix file os
Variables ¶
View Source
var ( MaxHostsEntires = 4096 // LoadAllEntries is a switch when true loads all entries to hybrid storage // backend and uses it even if in-memory storage backend was requested LoadAllEntries = false )
Functions ¶
func GetHostsFileDnsData ¶
func GetHostsFileDnsData(storage StorageType) (*hybrid.HybridMap, error)
GetHostsFileDnsData returns the immutable dns data that is constant throughout the program lifecycle and shouldn't be purged by cache etc.
func HandleHostLine ¶
HandleHostLine a hosts file line
Types ¶
Click to show internal directories.
Click to hide internal directories.