Implement CheckCle Microservice Operation
A Go-based microservice for service operations including ICMP ping, DNS resolution, and TCP connectivity
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"service-operation/config"
|
||||
"service-operation/pocketbase"
|
||||
)
|
||||
|
||||
type OperationHandler struct {
|
||||
config *config.Config
|
||||
pbClient *pocketbase.PocketBaseClient
|
||||
}
|
||||
|
||||
func NewOperationHandler(cfg *config.Config, pbClient *pocketbase.PocketBaseClient) *OperationHandler {
|
||||
return &OperationHandler{
|
||||
config: cfg,
|
||||
pbClient: pbClient,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user