Browse Source

vue

pull/429/head
Hunter Long 3 years ago
parent
commit
f62dcd4336
  1. 2
      .github/ISSUE_TEMPLATE/bug-report.md
  2. 2
      .github/ISSUE_TEMPLATE/feature_request.md
  3. 2
      .github/ISSUE_TEMPLATE/issue-report.md
  4. 21
      .github/workflows/go-test.yml
  5. 22
      .github/workflows/sentry.yml
  6. 14
      .github/workflows/slack-notify.yml
  7. 8
      .travis.yml
  8. 2
      Dockerfile
  9. 2
      Dockerfile.base
  10. 4
      Makefile
  11. 28
      README.md
  12. 4
      app.json
  13. 4
      cmd/assets.go
  14. 18
      cmd/cli.go
  15. 4
      cmd/cli_test.go
  16. 18
      cmd/database.go
  17. 2
      cmd/doc.go
  18. 18
      cmd/main.go
  19. 4
      database/grouping.go
  20. 4
      database/routines.go
  21. 4
      doc.go
  22. 7
      frontend/config/sentry.properties
  23. 2
      frontend/src/components/Index/Footer.vue
  24. 2
      go.mod
  25. 22
      handlers/api.go
  26. 14
      handlers/api_test.go
  27. 2
      handlers/cache.go
  28. 8
      handlers/checkin.go
  29. 8
      handlers/dashboard.go
  30. 2
      handlers/doc.go
  31. 14
      handlers/export.go
  32. 6
      handlers/function.go
  33. 4
      handlers/groups.go
  34. 8
      handlers/handlers.go
  35. 4
      handlers/incident.go
  36. 6
      handlers/index.go
  37. 6
      handlers/messages.go
  38. 4
      handlers/middleware.go
  39. 10
      handlers/notifications.go
  40. 2
      handlers/notifiers_test.go
  41. 10
      handlers/prometheus.go
  42. 2
      handlers/query.go
  43. 8
      handlers/routes.go
  44. 12
      handlers/services.go
  45. 2
      handlers/services_test.go
  46. 14
      handlers/setup.go
  47. 6
      handlers/users.go
  48. 2
      install.sh
  49. 10
      notifiers/command.go
  50. 10
      notifiers/discord.go
  51. 4
      notifiers/doc.go
  52. 12
      notifiers/email.go
  53. 10
      notifiers/line_notify.go
  54. 10
      notifiers/mobile.go
  55. 4
      notifiers/notifiers.go
  56. 10
      notifiers/slack.go
  57. 8
      notifiers/telegram.go
  58. 10
      notifiers/twilio.go
  59. 10
      notifiers/webhook.go
  60. 24
      old_Makefile
  61. 2
      source/doc.go
  62. 4
      source/generate_wiki.go
  63. 4
      source/source.go
  64. 4
      source/source_test.go
  65. 4
      source/tmpl/postman.json
  66. 2
      source/wiki.go
  67. 4
      types/checkins/database.go
  68. 2
      types/checkins/failures.go
  69. 4
      types/checkins/routine.go
  70. 2
      types/checkins/samples.go
  71. 6
      types/checkins/struct.go
  72. 2
      types/configs/configs_env.go
  73. 4
      types/configs/configs_file.go
  74. 2
      types/configs/configs_form.go
  75. 8
      types/configs/connection.go
  76. 24
      types/configs/database.go
  77. 2
      types/configs/file.go
  78. 22
      types/configs/migration.go
  79. 4
      types/configs/seed_test.go
  80. 6
      types/core/database.go
  81. 4
      types/core/init.go
  82. 4
      types/core/samples.go
  83. 2
      types/core/struct.go
  84. 2
      types/doc.go
  85. 2
      types/failures/database.go
  86. 2
      types/failures/interface.go
  87. 4
      types/failures/samples.go
  88. 2
      types/groups/database.go
  89. 4
      types/groups/methods.go
  90. 2
      types/groups/samples.go
  91. 2
      types/groups/struct.go
  92. 4
      types/hits/database.go
  93. 2
      types/hits/interface.go
  94. 6
      types/hits/samples.go
  95. 2
      types/incidents/database.go
  96. 2
      types/incidents/database_updates.go
  97. 2
      types/messages/database.go
  98. 2
      types/messages/struct.go
  99. 2
      types/notifications/database.go
  100. 2
      types/notifications/doc.go
  101. Some files were not shown because too many files have changed in this diff Show More

2
.github/ISSUE_TEMPLATE/bug-report.md

@ -20,4 +20,4 @@ A clear and concise description of what you expected to happen.
### Screenshots
If applicable, add screenshots to help explain your problem.
[![Slack](https://slack.statping.com/badge.svg)](https://slack.statping.com/) [![GitHub release](https://img.shields.io/github/release/hunterlong/statping.svg)](https://github.com/hunterlong/statping/releases/latest) [![Build Status](https://travis-ci.com/hunterlong/statping.svg?branch=master)](https://travis-ci.com/hunterlong/statping)
[![Slack](https://slack.statping.com/badge.svg)](https://slack.statping.com/) [![GitHub release](https://img.shields.io/github/release/hunterlong/statping.svg)](https://github.com/statping/statping/releases/latest) [![Build Status](https://travis-ci.com/hunterlong/statping.svg?branch=master)](https://travis-ci.com/hunterlong/statping)

2
.github/ISSUE_TEMPLATE/feature_request.md

@ -19,4 +19,4 @@ I'm always frustrated when [...]
### Additional context
Add any other context or screenshots about the feature request here.
[![Slack](https://slack.statping.com/badge.svg)](https://slack.statping.com/) [![GitHub release](https://img.shields.io/github/release/hunterlong/statping.svg)](https://github.com/hunterlong/statping/releases/latest) [![Build Status](https://travis-ci.com/hunterlong/statping.svg?branch=master)](https://travis-ci.com/hunterlong/statping)
[![Slack](https://slack.statping.com/badge.svg)](https://slack.statping.com/) [![GitHub release](https://img.shields.io/github/release/hunterlong/statping.svg)](https://github.com/statping/statping/releases/latest) [![Build Status](https://travis-ci.com/hunterlong/statping.svg?branch=master)](https://travis-ci.com/hunterlong/statping)

2
.github/ISSUE_TEMPLATE/issue-report.md

@ -20,4 +20,4 @@ A clear and concise description of what you expected to happen.
### Screenshots
If applicable, add screenshots to help explain your problem.
[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/statup-app/general) [![GitHub release](https://img.shields.io/github/release/hunterlong/statup.svg)](https://github.com/hunterlong/statping/releases/latest) [![Build Status](https://travis-ci.com/hunterlong/statup.svg?branch=master)](https://travis-ci.com/hunterlong/statup)
[![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/statup-app/general) [![GitHub release](https://img.shields.io/github/release/hunterlong/statup.svg)](https://github.com/statping/statping/releases/latest) [![Build Status](https://travis-ci.com/hunterlong/statup.svg?branch=master)](https://travis-ci.com/hunterlong/statup)

21
.github/workflows/go-test.yml

@ -0,0 +1,21 @@
on: [push, pull_request]
name: Golang Test
jobs:
test:
env:
GOPATH: ${{ github.workspace }}
GO111MODULE: on
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/[email protected]
with:
go-version: 1.14.x
- name: Checkout code
uses: actions/[email protected]
with:
path: ./src/github.com/${{ github.repository }}
- name: Go Mod
run: go mod download
- name: Test
run: go test -p=1 ./...

22
.github/workflows/sentry.yml

@ -0,0 +1,22 @@
name: ReleaseWorkflow
on:
release:
types: [published, prereleased]
jobs:
createSentryRelease:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Create a Sentry.io release
uses: tclindner/[email protected]
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_ORG: Statping
SENTRY_PROJECT: golang
with:
tagName: ${{ github.ref }}
environment: qa

14
.github/workflows/slack-notify.yml

@ -0,0 +1,14 @@
on: push
name: Slack Notification
jobs:
slackNotification:
name: Slack Notification
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Slack Notification
uses: rtCamp/[email protected]
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_URL }}
SLACK_CHANNEL: dev
SLACK_USERNAME: Github

8
.travis.yml

@ -2,13 +2,13 @@ os:
- linux
language: go
go: 1.13.5
go_import_path: github.com/hunterlong/statping
go_import_path: github.com/statping/statping
cache:
directories:
- "~/.npm"
- "~/.cache"
- "$GOPATH/src/github.com/hunterlong/statping/tmp"
- "$GOPATH/src/github.com/hunterlong/statping/vendor"
- "$GOPATH/src/github.com/statping/statping/tmp"
- "$GOPATH/src/github.com/statping/statping/vendor"
sudo: required
services:
- docker
@ -23,7 +23,7 @@ env:
- DB_PASS=
- DB_DATABASE=test
- GO_ENV=test
- STATPING_DIR=$GOPATH/src/github.com/hunterlong/statping
- STATPING_DIR=$GOPATH/src/github.com/statping/statping
matrix:
allow_failures:
- go: master

2
Dockerfile

@ -16,7 +16,7 @@ ARG VERSION
RUN apk add --update --no-cache libstdc++ gcc g++ make git ca-certificates linux-headers wget curl jq
RUN curl -L -s https://assets.statping.com/sass -o /usr/local/bin/sass && \
chmod +x /usr/local/bin/sass
WORKDIR /go/src/github.com/hunterlong/statping
WORKDIR /go/src/github.com/statping/statping
ADD go.mod go.sum ./
RUN go mod download
ENV GO111MODULE on

2
Dockerfile.base

@ -7,7 +7,7 @@ RUN npm install -g yarn
RUN curl -L -s https://assets.statping.com/sass -o /usr/local/bin/sass && \
chmod +x /usr/local/bin/sass
WORKDIR /go/src/github.com/hunterlong/statping
WORKDIR /go/src/github.com/statping/statping
ADD go.mod go.sum ./

4
Makefile

@ -7,8 +7,8 @@ XGO=xgo -go $(GOVERSION) --dest=build
BUILDVERSION=-ldflags "-X main.VERSION=${VERSION} -X main.COMMIT=$(TRAVIS_COMMIT)"
TRVIS_SECRET=lRqWSt5BoekFK6+padJF+b77YkGdispPXEUKNuD7/Hxb7yJMoI8T/n8xZrTHtCZPdjtpy7wIlJCezNoYEZB3l2GnD6Y1QEZEXF7MIxP7hwsB/uSc5/lgdGW0ZLvTBfv6lwI/GjQIklPBW/4xcKJtj4s1YBP7xvqyIb/lDN7TiOqAKF4gqRVVfsxvlkm7j4TiPCXtz17hYQfU8kKBbd+vd3PuZgdWqs//5RwKk3Ld8QR8zoo9xXQVC5NthiyVbHznzczBsHy2cRZZoWxyi7eJM1HrDw8Jn/ivJONIHNv3RgFVn2rAoKu1X8F6FyuvPO0D2hWC62mdO/e0kt4X0mn9/6xlLSKwrHir67UgNVQe3tvlH0xNKh+yNZqR5x9t0V54vNks6Pgbhas5EfLHoWn5cF4kbJzqkXeHjt1msrsqpA3HKbmtwwjJr4Slotfiu22mAhqLSOV+xWV+IxrcNnrEq/Pa+JAzU12Uyxs8swaLJGPRAlWnJwzL9HK5aOpN0sGTuSEsTwj0WxeMMRx25YEq3+LZOgwOy3fvezmeDnKuBZa6MVCoMMpx1CRxMqAOlTGZXHjj+ZPmqDUUBpzAsFSzIdVRgcnDlLy7YRiz3tVWa1G5S07l/VcBN7ZgvCwOWZ0QgOH0MxkoDfhrfoMhNO6MBFDTRKCEl4TroPEhcInmXU8=
PUBLISH_BODY='{ "request": { "branch": "master", "message": "Homebrew update version v${VERSION}", "config": { "env": { "VERSION": "${VERSION}", "COMMIT": "$(TRAVIS_COMMIT)" } } } }'
TRAVIS_BUILD_CMD='{ "request": { "branch": "master", "message": "Compile master for Statping v${VERSION}", "config": { "os": [ "linux" ], "language": "go", "go": [ "${GOVERSION}" ], "go_import_path": "github.com/hunterlong/statping", "install": true, "sudo": "required", "services": [ "docker" ], "env": { "VERSION": "${VERSION}", "secure": "${TRVIS_SECRET}" }, "matrix": { "allow_failures": [ { "go": "master" } ], "fast_finish": true }, "before_deploy": [ "git config --local user.name \"hunterlong\"", "git config --local user.email \"[email protected]\"", "git tag v$(VERSION) --force"], "deploy": [ { "provider": "releases", "api_key": "$$TAG_TOKEN", "file_glob": true, "file": "build/*", "skip_cleanup": true, "on": {"branch": "master"} } ], "notifications": { "email": false }, "before_script": ["gem install sass"], "script": [ "travis_wait 30 docker pull crazymax/xgo:$(GOVERSION)", "make release" ], "after_success": [], "after_deploy": [ "make publish-homebrew" ] } } }'
TEST_DIR=$(GOPATH)/src/github.com/hunterlong/statping
TRAVIS_BUILD_CMD='{ "request": { "branch": "master", "message": "Compile master for Statping v${VERSION}", "config": { "os": [ "linux" ], "language": "go", "go": [ "${GOVERSION}" ], "go_import_path": "github.com/statping/statping", "install": true, "sudo": "required", "services": [ "docker" ], "env": { "VERSION": "${VERSION}", "secure": "${TRVIS_SECRET}" }, "matrix": { "allow_failures": [ { "go": "master" } ], "fast_finish": true }, "before_deploy": [ "git config --local user.name \"hunterlong\"", "git config --local user.email \"[email protected]\"", "git tag v$(VERSION) --force"], "deploy": [ { "provider": "releases", "api_key": "$$TAG_TOKEN", "file_glob": true, "file": "build/*", "skip_cleanup": true, "on": {"branch": "master"} } ], "notifications": { "email": false }, "before_script": ["gem install sass"], "script": [ "travis_wait 30 docker pull crazymax/xgo:$(GOVERSION)", "make release" ], "after_success": [], "after_deploy": [ "make publish-homebrew" ] } } }'
TEST_DIR=$(GOPATH)/src/github.com/statping/statping
PATH:=/usr/local/bin:$(GOPATH)/bin:$(PATH)
all: clean yarn-install compile docker-base docker-vue build-all compress

28
README.md

@ -3,13 +3,13 @@
</p>
<p align="center">
<b>Statping - Web and App Status Monitoring for Any Type of Project</b><br>
<a href="https://github.com/hunterlong/statping/wiki">View Wiki</a> | <a href="https://demo.statping.com">Demo</a> | <a href="https://itunes.apple.com/us/app/apple-store/id1445513219">iPhone</a> | <a href="https://play.google.com/store/apps/details?id=com.statping">Android</a> <br> <a href="https://github.com/hunterlong/statping/wiki/API">API</a> | <a href="https://github.com/hunterlong/statping/wiki/Docker">Docker</a> | <a href="https://github.com/hunterlong/statping/wiki/AWS-EC2">EC2</a> | <a href="https://github.com/hunterlong/statping/wiki/Mac">Mac</a> | <a href="https://github.com/hunterlong/statping/wiki/Linux">Linux</a> | <a href="https://github.com/hunterlong/statping/wiki/Windows">Windows</a> | <a href="https://github.com/hunterlong/statping/wiki/Statping-Plugins">Plugins</a>
<a href="https://github.com/statping/statping/wiki">View Wiki</a> | <a href="https://demo.statping.com">Demo</a> | <a href="https://itunes.apple.com/us/app/apple-store/id1445513219">iPhone</a> | <a href="https://play.google.com/store/apps/details?id=com.statping">Android</a> <br> <a href="https://github.com/statping/statping/wiki/API">API</a> | <a href="https://github.com/statping/statping/wiki/Docker">Docker</a> | <a href="https://github.com/statping/statping/wiki/AWS-EC2">EC2</a> | <a href="https://github.com/statping/statping/wiki/Mac">Mac</a> | <a href="https://github.com/statping/statping/wiki/Linux">Linux</a> | <a href="https://github.com/statping/statping/wiki/Windows">Windows</a> | <a href="https://github.com/statping/statping/wiki/Statping-Plugins">Plugins</a>
</p>
# Statping - Status Page & Monitoring Server
An easy to use Status Page for your websites and applications. Statping will automatically fetch the application and render a beautiful status page with tons of features for you to build an even better status page. This Status Page generator allows you to use MySQL, Postgres, or SQLite on multiple operating systems.
[![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/hunterlong/statping) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/statping/general) [![](https://images.microbadger.com/badges/image/hunterlong/statping.svg)](https://microbadger.com/images/hunterlong/statping) [![Docker Pulls](https://img.shields.io/docker/pulls/hunterlong/statping.svg)](https://hub.docker.com/r/hunterlong/statping/builds/)
[![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/statping/statping) [![Gitter](https://img.shields.io/gitter/room/nwjs/nw.js.svg)](https://gitter.im/statping/general) [![](https://images.microbadger.com/badges/image/hunterlong/statping.svg)](https://microbadger.com/images/hunterlong/statping) [![Docker Pulls](https://img.shields.io/docker/pulls/hunterlong/statping.svg)](https://hub.docker.com/r/hunterlong/statping/builds/)
## A Future-Proof Status Page
Statping strives to remain future-proof and remain intact if a failure is created. Your Statping service should not be running on the same instance you're trying to monitor. If your server crashes your Status Page should still remaining online to notify your users of downtime.
@ -26,9 +26,9 @@ The Status binary for all other OS's is ~17Mb at most.
Statping is built in Go Language so all you need is the precompile binary based on your operating system. You won't need to install anything extra once you have the Statping binary installed. You can even run Statping on a Raspberry Pi.
<p align="center">
<a href="https://github.com/hunterlong/statping/wiki/Linux"><img width="5%" src="https://img.cjx.io/linux.png"></a>
<a href="https://github.com/hunterlong/statping/wiki/Mac"><img width="5%" src="https://img.cjx.io/apple.png"></a>
<a href="https://github.com/hunterlong/statping/wiki/Windows"><img width="5%" src="https://img.cjx.io/windows.png"></a>
<a href="https://github.com/statping/statping/wiki/Linux"><img width="5%" src="https://img.cjx.io/linux.png"></a>
<a href="https://github.com/statping/statping/wiki/Mac"><img width="5%" src="https://img.cjx.io/apple.png"></a>
<a href="https://github.com/statping/statping/wiki/Windows"><img width="5%" src="https://img.cjx.io/windows.png"></a>
<a href="https://play.google.com/store/apps/details?id=com.statping"><img width="5%" src="https://img.cjx.io/android.png"></a>
<a href="https://itunes.apple.com/us/app/apple-store/id1445513219"><img width="5%" src="https://img.cjx.io/appstore.png"></a>
<a href="https://hub.docker.com/r/hunterlong/statping"><img width="5%" src="https://img.cjx.io/dockericon.png"></a>
@ -48,7 +48,7 @@ The Statping app is available on the App Store and Google Play for free. The app
</p>
## Run on Any Server
Whether you're a Docker fan-boy or a [AWS EC2](https://github.com/hunterlong/statping/wiki/AWS-EC2) master, Statping gives you multiple options to simply get running. Our Amazon AMI image is only 8Gb and will automatically update to the most stable version of Statping.
Whether you're a Docker fan-boy or a [AWS EC2](https://github.com/statping/statping/wiki/AWS-EC2) master, Statping gives you multiple options to simply get running. Our Amazon AMI image is only 8Gb and will automatically update to the most stable version of Statping.
Running on an EC2 server might be the most cost effective way to host your own Statping Status Page. The server runs on the smallest EC2 instance (t2.nano) AWS has to offer, which only costs around $4.60 USD a month for your dedicated Status Page.
Want to run it on your own Docker server? Awesome! Statping has multiple docker-compose.yml files to work with. Statping can automatically create a SSL Certification for your status page.
@ -63,8 +63,8 @@ Statping will allow you to completely customize your Status Page using SASS styl
Statping includes email notification via SMTP and Slack integration using [Incoming Webhook](https://api.slack.com/incoming-webhooks). Insert the webhook URL into the Settings page in Statping and enable the Slack integration. Anytime a service fails, you're channel that you specified on Slack will receive a message.
## User Created Plugins and Notifiers
View the [Plugin Wiki](https://github.com/hunterlong/statping/wiki/Statping-Plugins) to see detailed information about Golang Plugins. Statping isn't just another Status Page for your applications, it's a framework that allows you to create your own plugins to interact with every element of your status page. [Notifier's](https://github.com/hunterlong/statping/wiki/Notifiers) can also be create with only 1 golang file.
Plugin are created in Golang using the [statping/plugin](https://github.com/hunterlong/statping/tree/master/plugin) golang package. The plugin package has a list of interfaces/events to accept into your own plugin application.
View the [Plugin Wiki](https://github.com/statping/statping/wiki/Statping-Plugins) to see detailed information about Golang Plugins. Statping isn't just another Status Page for your applications, it's a framework that allows you to create your own plugins to interact with every element of your status page. [Notifier's](https://github.com/statping/statping/wiki/Notifiers) can also be create with only 1 golang file.
Plugin are created in Golang using the [statping/plugin](https://github.com/statping/statping/tree/master/plugin) golang package. The plugin package has a list of interfaces/events to accept into your own plugin application.
<p align="center">
<img width="100%" src="https://img.cjx.io/statupsc2.png">
@ -85,7 +85,7 @@ statping export
###### `index.html` will be created in the current directory with CDN URL's for assets.
## Run on Docker
Use the [Statping Docker Image](https://hub.docker.com/r/hunterlong/statping) to create a status page in seconds. Checkout the [Docker Wiki](https://github.com/hunterlong/statping/wiki/Docker) to view more details on how to get started using Docker.
Use the [Statping Docker Image](https://hub.docker.com/r/hunterlong/statping) to create a status page in seconds. Checkout the [Docker Wiki](https://github.com/statping/statping/wiki/Docker) to view more details on how to get started using Docker.
```bash
docker run -it -p 8080:8080 hunterlong/statping
```
@ -107,7 +107,7 @@ LETSENCRYPT_HOST=mydomain.com \
Once your instance has started, it will take a moment to get your SSL certificate. Make sure you have a A or CNAME record on your domain that points to the IP/DNS of your server running Statping.
## Prometheus Exporter
Statping includes a [Prometheus Exporter](https://github.com/hunterlong/statping/wiki/Prometheus-Exporter) so you can have even more monitoring power with your services. The Prometheus exporter can be seen on `/metrics`, simply create another exporter in your prometheus config. Use your Statping API Secret for the Authorization Bearer header, the `/metrics` URL is dedicated for Prometheus and requires the correct API Secret has `Authorization` header.
Statping includes a [Prometheus Exporter](https://github.com/statping/statping/wiki/Prometheus-Exporter) so you can have even more monitoring power with your services. The Prometheus exporter can be seen on `/metrics`, simply create another exporter in your prometheus config. Use your Statping API Secret for the Authorization Bearer header, the `/metrics` URL is dedicated for Prometheus and requires the correct API Secret has `Authorization` header.
```yaml
scrape_configs:
- job_name: 'statping'
@ -117,7 +117,7 @@ scrape_configs:
```
## Run on EC2 Server
Running Statping on the smallest EC2 server is very quick using the AWS AMI Image. Checkout the [AWS Wiki](https://github.com/hunterlong/statping/wiki/AWS-EC2) to see a step by step guide on how to get your EC2 Statping service online.
Running Statping on the smallest EC2 server is very quick using the AWS AMI Image. Checkout the [AWS Wiki](https://github.com/statping/statping/wiki/AWS-EC2) to see a step by step guide on how to get your EC2 Statping service online.
##### Create Security Groups
Create the AWS Security Groups with the commands below, Statping will expose port 80 and 443.
@ -158,11 +158,11 @@ aws ec2 run-instances \
```
## Contributing
Statping accepts Push Requests! Feel free to add your own features and notifiers. You probably want to checkout the [Notifier Wiki](https://github.com/hunterlong/statping/wiki/Notifiers) to get a better understanding on how to create your own notification methods for failing/successful services. Testing on Statping will test each function on MySQL, Postgres, and SQLite. I recommend you run a MySQL and a Postgres Docker image for testing.
Statping accepts Push Requests! Feel free to add your own features and notifiers. You probably want to checkout the [Notifier Wiki](https://github.com/statping/statping/wiki/Notifiers) to get a better understanding on how to create your own notification methods for failing/successful services. Testing on Statping will test each function on MySQL, Postgres, and SQLite. I recommend you run a MySQL and a Postgres Docker image for testing.
[![Go Report Card](https://goreportcard.com/badge/github.com/hunterlong/statping)](https://goreportcard.com/report/github.com/hunterlong/statping)
[![Go Report Card](https://goreportcard.com/badge/github.com/statping/statping)](https://goreportcard.com/report/github.com/statping/statping)
[![Build Status](https://travis-ci.com/hunterlong/statping.svg?branch=master)](https://travis-ci.com/hunterlong/statping) [![Cypress.io tests](https://img.shields.io/badge/cypress.io-tests-green.svg?style=flat-square)](https://dashboard.cypress.io/#/projects/bi8mhr/runs)
[![Docker Pulls](https://img.shields.io/docker/pulls/hunterlong/statping.svg)](https://hub.docker.com/r/hunterlong/statping/builds/) [![Godoc](https://godoc.org/github.com/hunterlong/statping?status.svg)](https://godoc.org/github.com/hunterlong/statping)[![Coverage Status](https://coveralls.io/repos/github/hunterlong/statping/badge.svg?branch=master)](https://coveralls.io/github/hunterlong/statping?branch=master)
[![Docker Pulls](https://img.shields.io/docker/pulls/hunterlong/statping.svg)](https://hub.docker.com/r/hunterlong/statping/builds/) [![Godoc](https://godoc.org/github.com/statping/statping?status.svg)](https://godoc.org/github.com/statping/statping)[![Coverage Status](https://coveralls.io/repos/github/hunterlong/statping/badge.svg?branch=master)](https://coveralls.io/github/hunterlong/statping?branch=master)
<p align="center">

4
app.json

@ -1,7 +1,7 @@
{
"name": "Statping",
"description": "Statping Server Monitoring with Status Page",
"repository": "https://github.com/hunterlong/statping",
"repository": "https://github.com/statping/statping",
"logo": "https://raw.githubusercontent.com/hunterlong/statping/master/source/tmpl/banner.png",
"keywords": ["statping", "server", "monitoring", "status page","golang", "go"]
}
}

4
cmd/assets.go

@ -2,8 +2,8 @@ package main
import (
"fmt"
"github.com/hunterlong/statping/source"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/source"
"github.com/statping/statping/utils"
"net"
)

18
cmd/cli.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -18,14 +18,14 @@ package main
import (
"encoding/json"
"fmt"
"github.com/hunterlong/statping/handlers"
"github.com/hunterlong/statping/source"
"github.com/hunterlong/statping/types/configs"
"github.com/hunterlong/statping/types/core"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/joho/godotenv"
"github.com/pkg/errors"
"github.com/statping/statping/handlers"
"github.com/statping/statping/source"
"github.com/statping/statping/types/configs"
"github.com/statping/statping/types/core"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"io/ioutil"
"time"
)
@ -184,7 +184,7 @@ func catchCLI(args []string) error {
func updateDisplay() error {
gitCurrent, err := checkGithubUpdates()
if err != nil {
return errors.Wrap(err, "Issue connecting to https://github.com/hunterlong/statping")
return errors.Wrap(err, "Issue connecting to https://github.com/statping/statping")
}
if gitCurrent.TagName == "" {
return nil
@ -274,7 +274,7 @@ func HelpEcho() {
fmt.Println(" AUTH_PASSWORD - HTTP Basic Authentication password")
fmt.Println(" BASE_PATH - Set the base URL prefix (set to 'monitor' if URL is domain.com/monitor)")
fmt.Println(" * You can insert environment variables into a '.env' file in root directory.")
fmt.Println("Give Statping a Star at https://github.com/hunterlong/statping")
fmt.Println("Give Statping a Star at https://github.com/statping/statping")
}
func checkGithubUpdates() (githubResponse, error) {

4
cmd/cli_test.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -18,8 +18,8 @@ package main
import (
"fmt"
"github.com/getsentry/sentry-go"
"github.com/hunterlong/statping/utils"
"github.com/rendon/testcli"
"github.com/statping/statping/utils"
"github.com/stretchr/testify/assert"
"os"
"os/exec"

18
cmd/database.go

@ -1,15 +1,15 @@
package main
import (
"github.com/hunterlong/statping/types/checkins"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/groups"
"github.com/hunterlong/statping/types/hits"
"github.com/hunterlong/statping/types/incidents"
"github.com/hunterlong/statping/types/messages"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/types/users"
"github.com/statping/statping/types/checkins"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/groups"
"github.com/statping/statping/types/hits"
"github.com/statping/statping/types/incidents"
"github.com/statping/statping/types/messages"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/services"
"github.com/statping/statping/types/users"
)
var (

2
cmd/doc.go

@ -23,5 +23,5 @@
// docker pull karalabe/xgo-latest
// build-all
//
// More info on: https://github.com/hunterlong/statping
// More info on: https://github.com/statping/statping
package main

18
cmd/main.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -19,21 +19,21 @@ import (
"flag"
"fmt"
"github.com/getsentry/sentry-go"
"github.com/hunterlong/statping/notifiers"
"github.com/statping/statping/notifiers"
"os"
"os/signal"
"syscall"
"time"
"github.com/hunterlong/statping/source"
"github.com/statping/statping/source"
"github.com/hunterlong/statping/database"
"github.com/hunterlong/statping/handlers"
"github.com/hunterlong/statping/types/configs"
"github.com/hunterlong/statping/types/core"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/pkg/errors"
"github.com/statping/statping/database"
"github.com/statping/statping/handlers"
"github.com/statping/statping/types/configs"
"github.com/statping/statping/types/core"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
)
var (

4
database/grouping.go

@ -2,8 +2,8 @@ package database
import (
"fmt"
"github.com/hunterlong/statping/types"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types"
"github.com/statping/statping/utils"
"net/http"
"net/url"
"strconv"

4
database/routines.go

@ -2,8 +2,8 @@ package database
import (
"fmt"
"github.com/hunterlong/statping/types"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types"
"github.com/statping/statping/utils"
"os"
"time"

4
doc.go

@ -1,10 +1,10 @@
// Package statping is a server monitoring application that includes a status page server. Visit the Statping repo at
// https://github.com/hunterlong/statping to get a full understanding of what this application can do.
// https://github.com/statping/statping to get a full understanding of what this application can do.
//
// Install Statping
//
// Statping is available for Mac, Linux and Windows 64x. You can download the tar.gz file or use a couple other methods. Download
// the latest release at https://github.com/hunterlong/statping/releases/latest or view below. If you're on windows, download
// the latest release at https://github.com/statping/statping/releases/latest or view below. If you're on windows, download
// the zip file from the latest releases link.
//
// // MacOS using homebrew

7
frontend/config/sentry.properties

@ -0,0 +1,7 @@
[defaults]
org=Statping
project=statping_frontend
url=https://sentry.statping.com
[auth]
token=6b5b07262307407daef8fc9606954dfd56453f9fed2e4bb5b494ab1753bbcac0

2
frontend/src/components/Index/Footer.vue

@ -1,7 +1,7 @@
<template>
<footer>
<div v-if="!$store.getters.core.footer" class="footer text-center mb-4 p-2">
<a href="https://github.com/hunterlong/statping" target="_blank">
<a href="https://github.com/statping/statping" target="_blank">
Statping {{$store.getters.core.version}} made with <font-awesome-icon style="color: #d40d0d" icon="heart"/>
</a> |
<router-link :to="$store.getters.core.logged_in ? '/dashboard' : '/login'">Dashboard</router-link>

2
go.mod

@ -1,4 +1,4 @@
module github.com/hunterlong/statping
module github.com/statping/statping
go 1.14

22
handlers/api.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -19,16 +19,16 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/hunterlong/statping/types/checkins"
"github.com/hunterlong/statping/types/core"
"github.com/hunterlong/statping/types/groups"
"github.com/hunterlong/statping/types/incidents"
"github.com/hunterlong/statping/types/messages"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/null"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/types/users"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/checkins"
"github.com/statping/statping/types/core"
"github.com/statping/statping/types/groups"
"github.com/statping/statping/types/incidents"
"github.com/statping/statping/types/messages"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/null"
"github.com/statping/statping/types/services"
"github.com/statping/statping/types/users"
"github.com/statping/statping/utils"
"net/http"
"time"
)

14
handlers/api_test.go

@ -6,14 +6,14 @@ import (
"encoding/json"
"fmt"
"github.com/getsentry/sentry-go"
_ "github.com/hunterlong/statping/notifiers"
"github.com/hunterlong/statping/source"
"github.com/hunterlong/statping/types/core"
"github.com/hunterlong/statping/types/groups"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/types/users"
"github.com/hunterlong/statping/utils"
"github.com/pkg/errors"
_ "github.com/statping/statping/notifiers"
"github.com/statping/statping/source"
"github.com/statping/statping/types/core"
"github.com/statping/statping/types/groups"
"github.com/statping/statping/types/services"
"github.com/statping/statping/types/users"
"github.com/statping/statping/utils"
"github.com/stretchr/testify/assert"
"io/ioutil"
"net/http"

2
handlers/cache.go

@ -1,7 +1,7 @@
package handlers
import (
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/utils"
"sync"
"time"
)

8
handlers/checkin.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -19,9 +19,9 @@ import (
"encoding/json"
"fmt"
"github.com/gorilla/mux"
"github.com/hunterlong/statping/types/checkins"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/checkins"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"net"
"net/http"
)

8
handlers/dashboard.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -19,9 +19,9 @@ import (
"encoding/json"
"fmt"
"github.com/dgrijalva/jwt-go"
"github.com/hunterlong/statping/source"
"github.com/hunterlong/statping/types/users"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/source"
"github.com/statping/statping/types/users"
"github.com/statping/statping/utils"
"net/http"
"os"
"time"

2
handlers/doc.go

@ -1,5 +1,5 @@
// Package handlers contains the HTTP server along with the requests and routes. All HTTP related
// functions are in this package.
//
// More info on: https://github.com/hunterlong/statping
// More info on: https://github.com/statping/statping
package handlers

14
handlers/export.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -17,12 +17,12 @@ package handlers
import (
"encoding/json"
"github.com/hunterlong/statping/types/checkins"
"github.com/hunterlong/statping/types/core"
"github.com/hunterlong/statping/types/groups"
"github.com/hunterlong/statping/types/messages"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/types/users"
"github.com/statping/statping/types/checkins"
"github.com/statping/statping/types/core"
"github.com/statping/statping/types/groups"
"github.com/statping/statping/types/messages"
"github.com/statping/statping/types/services"
"github.com/statping/statping/types/users"
)
// ExportChartsJs renders the charts for the index page

6
handlers/function.go

@ -2,9 +2,9 @@ package handlers
import (
"encoding/json"
"github.com/hunterlong/statping/source"
"github.com/hunterlong/statping/types/core"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/source"
"github.com/statping/statping/types/core"
"github.com/statping/statping/utils"
"html/template"
"net/http"
"net/url"

4
handlers/groups.go

@ -17,9 +17,9 @@ package handlers
import (
"github.com/gorilla/mux"
"github.com/hunterlong/statping/types/groups"
"github.com/hunterlong/statping/utils"
"github.com/pkg/errors"
"github.com/statping/statping/types/groups"
"github.com/statping/statping/utils"
"net/http"
)

8
handlers/handlers.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -22,7 +22,7 @@ import (
"errors"
"fmt"
"github.com/dgrijalva/jwt-go"
"github.com/hunterlong/statping/types/core"
"github.com/statping/statping/types/core"
"html/template"
"net/http"
"os"
@ -30,8 +30,8 @@ import (
"strings"
"time"
"github.com/hunterlong/statping/source"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/source"
"github.com/statping/statping/utils"
)
const (

4
handlers/incident.go

@ -3,8 +3,8 @@ package handlers
import (
"encoding/json"
"github.com/gorilla/mux"
"github.com/hunterlong/statping/types/incidents"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/incidents"
"github.com/statping/statping/utils"
"net/http"
)

6
handlers/index.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -16,8 +16,8 @@
package handlers
import (
"github.com/hunterlong/statping/types/core"
"github.com/hunterlong/statping/types/services"
"github.com/statping/statping/types/core"
"github.com/statping/statping/types/services"
"net/http"
)

6
handlers/messages.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -18,8 +18,8 @@ package handlers
import (
"fmt"
"github.com/gorilla/mux"
"github.com/hunterlong/statping/types/messages"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/messages"
"github.com/statping/statping/utils"
"net/http"
)

4
handlers/middleware.go

@ -6,8 +6,8 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/hunterlong/statping/types/core"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/core"
"github.com/statping/statping/utils"
"io"
"net/http"
"net/http/httptest"

10
handlers/notifications.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -19,10 +19,10 @@ import (
"encoding/json"
"fmt"
"github.com/gorilla/mux"
"github.com/hunterlong/statping/types/core"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/null"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/core"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/null"
"github.com/statping/statping/utils"
"net/http"
)

2
handlers/notifiers_test.go

@ -3,7 +3,7 @@
package handlers
import (
"github.com/hunterlong/statping/notifiers"
"github.com/statping/statping/notifiers"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"

10
handlers/prometheus.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -17,10 +17,10 @@ package handlers
import (
"fmt"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"net/http"
"runtime"
"strconv"

2
handlers/query.go

@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"
"github.com/gorilla/mux"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/utils"
"net/http"
)

8
handlers/routes.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -19,9 +19,9 @@ import (
"fmt"
sentryhttp "github.com/getsentry/sentry-go/http"
"github.com/gorilla/mux"
"github.com/hunterlong/statping/source"
"github.com/hunterlong/statping/types/core"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/source"
"github.com/statping/statping/types/core"
"github.com/statping/statping/utils"
"net/http"
)

12
handlers/services.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -17,12 +17,12 @@ package handlers
import (
"github.com/gorilla/mux"
"github.com/hunterlong/statping/database"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/hits"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/pkg/errors"
"github.com/statping/statping/database"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/hits"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"net/http"
)

2
handlers/services_test.go

@ -3,8 +3,8 @@
package handlers
import (
"github.com/hunterlong/statping/types/services"
"github.com/pkg/errors"
"github.com/statping/statping/types/services"
"github.com/stretchr/testify/assert"
"testing"
)

14
handlers/setup.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -17,12 +17,12 @@ package handlers
import (
"errors"
"github.com/hunterlong/statping/database"
"github.com/hunterlong/statping/notifiers"
"github.com/hunterlong/statping/types/configs"
"github.com/hunterlong/statping/types/core"
"github.com/hunterlong/statping/types/null"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/database"
"github.com/statping/statping/notifiers"
"github.com/statping/statping/types/configs"
"github.com/statping/statping/types/core"
"github.com/statping/statping/types/null"
"github.com/statping/statping/utils"
"net/http"
"time"
)

6
handlers/users.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -19,8 +19,8 @@ import (
"errors"
"fmt"
"github.com/gorilla/mux"
"github.com/hunterlong/statping/types/users"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/users"
"github.com/statping/statping/utils"
"net/http"
)

2
install.sh

@ -12,7 +12,7 @@ cyan="\033[36m"
white="\033[37m"
gpg_key=64B9C6AAE2D55278
gpgurl=https://statping.com/statping.gpg
repo=https://github.com/hunterlong/statping
repo=https://github.com/statping/statping
statping_get_tarball() {
fext='tar.gz'

10
notifiers/command.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -17,10 +17,10 @@ package notifiers
import (
"fmt"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"strings"
"time"
)

10
notifiers/discord.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -20,10 +20,10 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"strings"
"time"
)

4
notifiers/doc.go

@ -1,9 +1,9 @@
// Package notifiers holds all the notifiers for Statping, which also includes
// user created notifiers that have been accepted in a Push Request. Read the wiki
// to see a full example of a notifier with all events, visit Statping's
// notifier example code: https://github.com/hunterlong/statping/wiki/Notifier-Example
// notifier example code: https://github.com/statping/statping/wiki/Notifier-Example
//
// This package shouldn't contain any exports, to see how notifiers work
// visit the core/notifier package at: https://godoc.org/github.com/hunterlong/statping/core/notifier
// visit the core/notifier package at: https://godoc.org/github.com/statping/statping/core/notifier
// and learn how to create your own custom notifier.
package notifiers

12
notifiers/email.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -20,11 +20,11 @@ import (
"crypto/tls"
"fmt"
"github.com/go-mail/mail"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/null"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/null"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"html/template"
"time"
)

10
notifiers/line_notify.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -17,10 +17,10 @@ package notifiers
import (
"fmt"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"net/url"
"strings"
"time"

10
notifiers/mobile.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -19,10 +19,10 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"time"
)

4
notifiers/notifiers.go

@ -3,8 +3,8 @@ package notifiers
import (
"fmt"
"github.com/google/martian/log"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/utils"
"strings"
)

10
notifiers/slack.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -19,10 +19,10 @@ import (
"bytes"
"errors"
"fmt"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"strings"
"text/template"
"time"

8
notifiers/telegram.go

@ -19,10 +19,10 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"net/url"
"strings"
"time"

10
notifiers/twilio.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -19,10 +19,10 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"net/url"
"strings"
"time"

10
notifiers/webhook.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -18,10 +18,10 @@ package notifiers
import (
"bytes"
"fmt"
"github.com/hunterlong/statping/types/failures"
"github.com/hunterlong/statping/types/notifications"
"github.com/hunterlong/statping/types/services"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/types/failures"
"github.com/statping/statping/types/notifications"
"github.com/statping/statping/types/services"
"github.com/statping/statping/utils"
"io/ioutil"
"net/http"
"strings"

24
old_Makefile

@ -7,8 +7,8 @@ XGO=xgo -go $(GOVERSION) --dest=build
BUILDVERSION=-ldflags "-X main.VERSION=${VERSION} -X main.COMMIT=$(TRAVIS_COMMIT)"
TRVIS_SECRET=lRqWSt5BoekFK6+padJF+b77YkGdispPXEUKNuD7/Hxb7yJMoI8T/n8xZrTHtCZPdjtpy7wIlJCezNoYEZB3l2GnD6Y1QEZEXF7MIxP7hwsB/uSc5/lgdGW0ZLvTBfv6lwI/GjQIklPBW/4xcKJtj4s1YBP7xvqyIb/lDN7TiOqAKF4gqRVVfsxvlkm7j4TiPCXtz17hYQfU8kKBbd+vd3PuZgdWqs//5RwKk3Ld8QR8zoo9xXQVC5NthiyVbHznzczBsHy2cRZZoWxyi7eJM1HrDw8Jn/ivJONIHNv3RgFVn2rAoKu1X8F6FyuvPO0D2hWC62mdO/e0kt4X0mn9/6xlLSKwrHir67UgNVQe3tvlH0xNKh+yNZqR5x9t0V54vNks6Pgbhas5EfLHoWn5cF4kbJzqkXeHjt1msrsqpA3HKbmtwwjJr4Slotfiu22mAhqLSOV+xWV+IxrcNnrEq/Pa+JAzU12Uyxs8swaLJGPRAlWnJwzL9HK5aOpN0sGTuSEsTwj0WxeMMRx25YEq3+LZOgwOy3fvezmeDnKuBZa6MVCoMMpx1CRxMqAOlTGZXHjj+ZPmqDUUBpzAsFSzIdVRgcnDlLy7YRiz3tVWa1G5S07l/VcBN7ZgvCwOWZ0QgOH0MxkoDfhrfoMhNO6MBFDTRKCEl4TroPEhcInmXU8=
PUBLISH_BODY='{ "request": { "branch": "master", "message": "Homebrew update version v${VERSION}", "config": { "env": { "VERSION": "${VERSION}", "COMMIT": "$(TRAVIS_COMMIT)" } } } }'
TRAVIS_BUILD_CMD='{ "request": { "branch": "master", "message": "Compile master for Statping v${VERSION}", "config": { "os": [ "linux" ], "language": "go", "go": [ "${GOVERSION}" ], "go_import_path": "github.com/hunterlong/statping", "install": true, "sudo": "required", "services": [ "docker" ], "env": { "VERSION": "${VERSION}", "secure": "${TRVIS_SECRET}" }, "matrix": { "allow_failures": [ { "go": "master" } ], "fast_finish": true }, "before_deploy": [ "git config --local user.name \"hunterlong\"", "git config --local user.email \"[email protected]\"", "git tag v$(VERSION) --force"], "deploy": [ { "provider": "releases", "api_key": "$$TAG_TOKEN", "file_glob": true, "file": "build/*", "skip_cleanup": true, "on": {"branch": "master"} } ], "notifications": { "email": false }, "before_script": ["gem install sass"], "script": [ "travis_wait 30 docker pull crazymax/xgo:$(GOVERSION)", "make release" ], "after_success": [], "after_deploy": [ "make publish-homebrew" ] } } }'
TEST_DIR=$(GOPATH)/src/github.com/hunterlong/statping
TRAVIS_BUILD_CMD='{ "request": { "branch": "master", "message": "Compile master for Statping v${VERSION}", "config": { "os": [ "linux" ], "language": "go", "go": [ "${GOVERSION}" ], "go_import_path": "github.com/statping/statping", "install": true, "sudo": "required", "services": [ "docker" ], "env": { "VERSION": "${VERSION}", "secure": "${TRVIS_SECRET}" }, "matrix": { "allow_failures": [ { "go": "master" } ], "fast_finish": true }, "before_deploy": [ "git config --local user.name \"hunterlong\"", "git config --local user.email \"[email protected]\"", "git tag v$(VERSION) --force"], "deploy": [ { "provider": "releases", "api_key": "$$TAG_TOKEN", "file_glob": true, "file": "build/*", "skip_cleanup": true, "on": {"branch": "master"} } ], "notifications": { "email": false }, "before_script": ["gem install sass"], "script": [ "travis_wait 30 docker pull crazymax/xgo:$(GOVERSION)", "make release" ], "after_success": [], "after_deploy": [ "make publish-homebrew" ] } } }'
TEST_DIR=$(GOPATH)/src/github.com/statping/statping
PATH:=/usr/local/bin:$(GOPATH)/bin:$(PATH)
# build all arch's and release Statping
@ -127,16 +127,16 @@ coverage:
docs:
rm -f dev/README.md
printf "# Statping Dev Documentation\n" > dev/README.md
printf "This readme is automatically generated from the Golang documentation. [![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/hunterlong/statping)\n\n" > dev/README.md
godocdown github.com/hunterlong/statping >> dev/README.md
godocdown github.com/hunterlong/statping/cmd >> dev/README.md
godocdown github.com/hunterlong/statping/core >> dev/README.md
godocdown github.com/hunterlong/statping/handlers >> dev/README.md
godocdown github.com/hunterlong/statping/notifiers >> dev/README.md
godocdown github.com/hunterlong/statping/plugin >> dev/README.md
godocdown github.com/hunterlong/statping/source >> dev/README.md
godocdown github.com/hunterlong/statping/types >> dev/README.md
godocdown github.com/hunterlong/statping/utils >> dev/README.md
printf "This readme is automatically generated from the Golang documentation. [![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/statping/statping)\n\n" > dev/README.md
godocdown github.com/statping/statping >> dev/README.md
godocdown github.com/statping/statping/cmd >> dev/README.md
godocdown github.com/statping/statping/core >> dev/README.md
godocdown github.com/statping/statping/handlers >> dev/README.md
godocdown github.com/statping/statping/notifiers >> dev/README.md
godocdown github.com/statping/statping/plugin >> dev/README.md
godocdown github.com/statping/statping/source >> dev/README.md
godocdown github.com/statping/statping/types >> dev/README.md
godocdown github.com/statping/statping/utils >> dev/README.md
gocov-html coverage.json > dev/COVERAGE.html
revive -formatter stylish > dev/LINT.md

2
source/doc.go

@ -13,5 +13,5 @@
// sass source/scss/base.scss source/css/base.css
// cd source && rice embed-go
//
// More info on: https://github.com/hunterlong/statping
// More info on: https://github.com/statping/statping
package source

4
source/generate_wiki.go

@ -17,7 +17,7 @@
package main
import (
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/utils"
"io/ioutil"
"log"
"os"
@ -38,7 +38,7 @@ func main() {
var compiled string
utils.InitLogs()
utils.Command("git clone https://github.com/hunterlong/statping.wiki.git")
utils.Command("git clone https://github.com/statping/statping.wiki.git")
pages := []string{"Types-of-Monitoring", "Features", "Start-Statping", "Linux", "Mac", "Windows", "AWS-EC2", "Docker", "Mobile-App", "Heroku", "API", "Makefile",
"Notifiers", "Notifier-Events", "Notifier-Example", "Prometheus-Exporter", "SSL", "Config-with-.env-File", "Static-Export", "Statping-Plugins", "Statuper", "Build-and-Test", "Contributing", "PGP-Signature", "Testing", "Deployment"}

4
source/source.go

@ -2,7 +2,7 @@
// Copyright (C) 2018. Hunter Long and the project contributors
// Written by Hunter Long <[email protected]> and the project contributors
//
// https://github.com/hunterlong/statping
// https://github.com/statping/statping
//
// The licenses for most software and other practical works are designed
// to take away your freedom to share and change the works. By contrast,
@ -20,7 +20,7 @@ package source
import (
"fmt"
"github.com/GeertJohan/go.rice"
"github.com/hunterlong/statping/utils"
"github.com/statping/statping/utils"
"github.com/pkg/errors"
"github.com/russross/blackfriday/v2"
"os"