X-Git-Url: https://git.josue.xyz/?p=VSCPweb%2F.git;a=blobdiff_plain;f=handlers%2Fhealth%2FhealthHandlers.go;fp=handlers%2Fhealth%2FhealthHandlers.go;h=7e054da0cbb3248b568026438f35b4087d0b25f8;hp=0000000000000000000000000000000000000000;hb=a49b19ea760f5c6493e0145320f2bf37dd3a96ca;hpb=9113a0c47ac88499100bbe41462eaa11635bca25 diff --git a/handlers/health/healthHandlers.go b/handlers/health/healthHandlers.go new file mode 100644 index 0000000..7e054da --- /dev/null +++ b/handlers/health/healthHandlers.go @@ -0,0 +1,21 @@ +// healthHandlers package is the package with all of the handlers for the healt +// route of the system, it gets info from all of the workers of the cluster as +// well as the master server +package healthHandlers + +import ( + "fmt" + + "net/http" +) + +//TODO(josuer08): get mpstat idle stat for every machine, as well as the ifstat +//and also the temperatures of every one of the servers working for the cluster. + +// This might include a textproto where we have all of the info of every node and +// then with their addresses we can go ahead and query that info from them with +// the special agent that each of them will already have installed in order to +// connect to the cluster. +func MasterHealthHandler(w http.ResponseWriter, r *http.Request) { + fmt.Fprintf("Ëverything should be okay my boi") +}