meta

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package meta provides facilities to guesstimate the locations and operating systems of Hosts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields

} // type MetaEngine struct

Engine processes metadata on Hosts.

func OpenMetaEngine

func OpenMetaEngine() (*Engine, error)

OpenMetaEngine creates a new MetaEngine.

func (*Engine) Close

func (m *Engine) Close()

Close closes the MetaEngine.

func (*Engine) ForceUpdate

func (m *Engine) ForceUpdate()

ForceUpdate triggers an immediate metadata update.

func (*Engine) IsActive

func (m *Engine) IsActive() bool

IsActive returns the Engine's active flag.

func (*Engine) LookupCity

func (m *Engine) LookupCity(h *model.Host) (string, error)

LookupCity attempts to determine what city a Host is located in.

func (*Engine) LookupCountry

func (m *Engine) LookupCountry(h *model.Host) (string, error)

LookupCountry attempts to determine what county a Host is located in.

func (*Engine) Start

func (m *Engine) Start()

Start starts the MetaEngine's worker that periodically attempts to fill in missing metadata on Hosts.

func (*Engine) Stop

func (m *Engine) Stop()

Stop tells the Engine's worker to quit.

Jump to

Keyboard shortcuts

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