Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
PM2 watcher
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nico Baruna Putra
PM2 watcher
Commits
ccfcfd9a
Commit
ccfcfd9a
authored
Jul 25, 2024
by
Nico Baruna Putra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FIX :: remove timer sleep, add logs
parent
1938a10b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
index.go
index.go
+5
-0
main.exe
tmp/main.exe
+0
-0
No files found.
index.go
View file @
ccfcfd9a
...
...
@@ -66,15 +66,20 @@ func main() {
func
checkApi
()
{
response
,
err
:=
http
.
Get
(
BASE_URL
+
API_URL
)
if
err
!=
nil
{
fmt
.
Println
(
"ERROR NIH BOS!, KONEKSI PUTUS , KEMUNGKINAN SERVICE MATI"
)
Native
()
fmt
.
Print
(
err
.
Error
())
//sendMail("API not response")
//os.Exit(1)
}
else
if
response
.
StatusCode
!=
200
{
fmt
.
Println
(
"ERROR NIH BOS!, API Tidak MERESPONS, STATUSNYA : "
)
fmt
.
Println
(
response
.
StatusCode
)
Native
()
//sendMail("API not response")
}
else
{
fmt
.
Println
(
"MASIH AMAN BOS!"
)
}
}
...
...
tmp/main.exe
View file @
ccfcfd9a
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment