site

package
v0.0.0-...-cbbdd35 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Site

type Site struct {
	Hostname   string
	Port       int
	EntityName string
	IP         string   // Stores semicolon-separated IPs as a single string
	IPs        []string // Stores the split IPs for easier processing
	OldIP      string
	NewIP      string
	Changed    bool
	ChangeTime time.Time
}

type Sites

type Sites []Site

func (*Sites) CountRecords

func (s *Sites) CountRecords(db *bbolt.DB) (int, error)

func (*Sites) ReadFromCSV

func (s *Sites) ReadFromCSV(filePath string) error

func (*Sites) ReadFromDB

func (s *Sites) ReadFromDB(db *bbolt.DB) error

func (*Sites) ReportChanges

func (s *Sites) ReportChanges(db *bbolt.DB) error

func (*Sites) UpdateIPs

func (s *Sites) UpdateIPs(cfg *config.Config, db *bbolt.DB, updateFlag bool) error

func (*Sites) WriteToCSV

func (s *Sites) WriteToCSV(filePath string) error

func (*Sites) WriteToDB

func (s *Sites) WriteToDB(db *bbolt.DB) error

Jump to

Keyboard shortcuts

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