Documentation ¶
Index ¶
- func Generate(config *config.Config, db *gorm.DB) string
- func GenerateAndSave(config *config.Config, db *gorm.DB) error
- func IsRunning() bool
- func Reload() error
- func Run(ctx context.Context) chan struct{}
- type AREDNHost
- type AREDNService
- type HostData
- type HostsParser
- func (p *HostsParser) GetAREDNHostsCount() int
- func (p *HostsParser) GetHosts() []*AREDNHost
- func (p *HostsParser) GetHostsCount() int
- func (p *HostsParser) GetHostsPaginated(page int, limit int, filter string) []*AREDNHost
- func (p *HostsParser) GetTotalHostsCount() int
- func (p *HostsParser) Parse() (err error)
- type Parsers
- type ServicesParser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
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) GetAREDNHostsCount ¶ added in v0.0.180
func (p *HostsParser) GetAREDNHostsCount() int
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) GetTotalHostsCount ¶ added in v0.0.184
func (p *HostsParser) GetTotalHostsCount() int
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)
Click to show internal directories.
Click to hide internal directories.