olsrd

package
v0.0.146 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: AGPL-3.0 Imports: 14 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

func Run added in v0.0.90

func Run(ctx context.Context) 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) GetHostsCount added in v0.0.97

func (p *HostsParser) GetHostsCount() int

func (*HostsParser) GetHostsPaginated added in v0.0.97

func (p *HostsParser) GetHostsPaginated(page int, limit int, filter string) []*AREDNHost

func (*HostsParser) Parse

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

type Parsers

type Parsers struct {
	HostsParser    *HostsParser
	ServicesParser *ServicesParser
}

type ServicesParser added in v0.0.44

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

func NewServicesParser added in v0.0.44

func NewServicesParser() *ServicesParser

func (*ServicesParser) GetServices added in v0.0.44

func (p *ServicesParser) GetServices() []*AREDNService

func (*ServicesParser) Parse added in v0.0.44

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

Jump to

Keyboard shortcuts

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