olsrd

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(config *config.Config, db *gorm.DB) string

func GenerateAndSave

func GenerateAndSave(config *config.Config, db *gorm.DB) error

func IsRunning

func IsRunning() bool

func Reload

func Reload() error

Types

type AREDNHost

type AREDNHost struct {
	HostData
	Children []HostData `json:"children"`
}

func (*AREDNHost) String

func (h *AREDNHost) String() string

type AREDNService

type AREDNService struct {
	URL        string `json:"url"`
	Protocol   string `json:"protocol"`
	Name       string `json:"name"`
	ShouldLink bool   `json:"should_link"`
}

func (*AREDNService) String

func (s *AREDNService) String() string

type HostData

type HostData struct {
	Hostname string          `json:"hostname"`
	IP       net.IP          `json:"ip"`
	Services []*AREDNService `json:"services"`
}

type HostsParser

type HostsParser struct {
	// contains filtered or unexported fields
}

func NewHostsParser

func NewHostsParser() *HostsParser

func (*HostsParser) GetHosts

func (p *HostsParser) GetHosts() []*AREDNHost

func (*HostsParser) Parse

func (p *HostsParser) Parse() (err error)

type Parsers

type Parsers struct {
	HostsParser    *HostsParser
	ServicesParser *servicesParser
}

Jump to

Keyboard shortcuts

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