Documentation
¶
Index ¶
- func Generate(config *config.Config, db *gorm.DB) string
- func GenerateAndSave(config *config.Config, db *gorm.DB) error
- type Host
- type HostData
- type HostsParser
- func (p *HostsParser) GetHosts() []*Host
- func (p *HostsParser) GetHostsCount() int
- func (p *HostsParser) GetHostsPaginated(page int, limit int, filter string) []*Host
- func (p *HostsParser) GetMeshHostsCount() int
- func (p *HostsParser) GetTotalHostsCount() int
- func (p *HostsParser) Parse() (err error)
- type MeshService
- type Parsers
- type Service
- type ServicesParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HostData ¶
type HostData struct {
Hostname string `json:"hostname"`
IP net.IP `json:"ip"`
Services []*MeshService `json:"services"`
}
type HostsParser ¶
type HostsParser struct {
// contains filtered or unexported fields
}
func NewHostsParser ¶
func NewHostsParser() *HostsParser
func (*HostsParser) GetHosts ¶
func (p *HostsParser) GetHosts() []*Host
func (*HostsParser) GetHostsCount ¶
func (p *HostsParser) GetHostsCount() int
func (*HostsParser) GetHostsPaginated ¶
func (p *HostsParser) GetHostsPaginated(page int, limit int, filter string) []*Host
func (*HostsParser) GetMeshHostsCount ¶
func (p *HostsParser) GetMeshHostsCount() int
func (*HostsParser) GetTotalHostsCount ¶
func (p *HostsParser) GetTotalHostsCount() int
func (*HostsParser) Parse ¶
func (p *HostsParser) Parse() (err error)
type MeshService ¶
type MeshService struct {
URL string `json:"url"`
Protocol string `json:"protocol"`
Name string `json:"name"`
ShouldLink bool `json:"should_link"`
}
func (*MeshService) String ¶
func (s *MeshService) String() string
type Parsers ¶
type Parsers struct {
HostsParser *HostsParser
ServicesParser *ServicesParser
}
type ServicesParser ¶
type ServicesParser struct {
// contains filtered or unexported fields
}
func NewServicesParser ¶
func NewServicesParser() *ServicesParser
func (*ServicesParser) GetServices ¶
func (p *ServicesParser) GetServices() []*MeshService
func (*ServicesParser) GetServicesCount ¶
func (p *ServicesParser) GetServicesCount() int
func (*ServicesParser) Parse ¶
func (p *ServicesParser) Parse() (err error)
Click to show internal directories.
Click to hide internal directories.