Documentation
¶
Index ¶
- type Host
- type HostData
- type MeshService
- type Parser
- func (p *Parser) GetHosts() []*Host
- func (p *Parser) GetHostsCount() int
- func (p *Parser) GetHostsPaginated(page int, limit int, filter string) []*Host
- func (p *Parser) GetNodeHostsCount() int
- func (p *Parser) GetServiceCount() int
- func (p *Parser) GetTotalHostsCount() int
- func (p *Parser) Parse() error
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 (*Parser) GetHostsCount ¶
func (*Parser) GetHostsPaginated ¶
func (*Parser) GetNodeHostsCount ¶
func (*Parser) GetServiceCount ¶
func (*Parser) GetTotalHostsCount ¶
Click to show internal directories.
Click to hide internal directories.