uptime-monitor-using-Golang

Introduction

Written this task for internship.

Prerequisites

  • MySQL
  • Golang

Deployment

First create the monitorDB.sql:

mysql> CREATE DATABASE monitorDB;

create manager user:

mysql> CREATE USER 'manager'@'localhost' IDENTIFIED BY '123456';

granting for manager:

mysql> GRANT ALL PRIVILEGES ON monitorDB.* TO 'manager'@'localhost';

Then you can run the uptime-monitor simply by go run:

 go run main.go