Documentation
¶
Index ¶
- Variables
- type HealthCheckController
- type IPController
- func (ctrl IPController) Create(ip *db.IP) error
- func (ctrl IPController) Delete(id uuid.UUID) error
- func (ctrl IPController) GetAll(status, sort string, offset, limit int) ([]db.IP, error)
- func (ctrl IPController) GetByID(id uuid.UUID) (*db.IP, error)
- func (ctrl IPController) Update(id uuid.UUID, data map[string]interface{}) (*db.IP, error)
- type PingRequestResponse
- type PingResultResponse
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type HealthCheckController ¶
type HealthCheckController struct{}
func (HealthCheckController) FetchAndStorePingResults ¶
func (ctrl HealthCheckController) FetchAndStorePingResults(ip string, nodes []string) error
func (HealthCheckController) SendPingRequest ¶
func (ctrl HealthCheckController) SendPingRequest(ip string, nodes []string) (string, error)
type IPController ¶
type IPController struct{}
IPController handles the business logic for IP operations
func (IPController) Create ¶
func (ctrl IPController) Create(ip *db.IP) error
Create adds a new IP address to the database
func (IPController) Delete ¶
func (ctrl IPController) Delete(id uuid.UUID) error
Delete removes an IP address by its UUID
type PingRequestResponse ¶
type PingResultResponse ¶
type PingResultResponse map[string][][][]interface{}
Click to show internal directories.
Click to hide internal directories.