meshlink

package
v0.0.424 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

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

func (*Host) String

func (h *Host) String() string

type HostData

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

type MeshService

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

func (*MeshService) String

func (s *MeshService) String() string

type Parser

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

func NewParser

func NewParser() *Parser

func (*Parser) GetHosts

func (p *Parser) GetHosts() []*Host

func (*Parser) GetHostsCount

func (p *Parser) GetHostsCount() int

func (*Parser) GetHostsPaginated

func (p *Parser) GetHostsPaginated(page int, limit int, filter string) []*Host

func (*Parser) GetNodeHostsCount

func (p *Parser) GetNodeHostsCount() int

func (*Parser) GetServiceCount

func (p *Parser) GetServiceCount() int

func (*Parser) GetTotalHostsCount

func (p *Parser) GetTotalHostsCount() int

func (*Parser) Parse

func (p *Parser) Parse() error

type Service

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

func NewService

func NewService(config *config.Config) *Service

func (*Service) IsEnabled

func (s *Service) IsEnabled() bool

func (*Service) IsRunning

func (s *Service) IsRunning() bool

func (*Service) Reload

func (s *Service) Reload() error

func (*Service) Start

func (s *Service) Start() error

func (*Service) Stop

func (s *Service) Stop() error

Jump to

Keyboard shortcuts

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