diff --git a/CHANGELOG.md b/CHANGELOG.md index e00e4a44..dc77eac2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,9 +14,9 @@ # 0.90.73 (12-15-2020) - Removed complexity in code for http server - Removed internal cache functionality (not useful, needs refactor) -- Merged PR https://github.com/adamboutcher/statping-ng/pull/909 -- Merged PR https://github.com/adamboutcher/statping-ng/pull/880 -- Merged PR https://github.com/adamboutcher/statping-ng/pull/859 +- Merged PR https://github.com/statping-ng/statping-ng/pull/909 +- Merged PR https://github.com/statping-ng/statping-ng/pull/880 +- Merged PR https://github.com/statping-ng/statping-ng/pull/859 # 0.90.72 (10-28-2020) - Fixed issue with graphs becoming stuck on reload @@ -28,7 +28,7 @@ - Merged PR #806 - Enhance GRPC Monitoring - Merged PR #692 - When login fields are autofilled the sign in button should be enabled - Modified multiple Vue forms to use number models for integer inputs -- Fixed page freeze issue for incidents https://github.com/adamboutcher/statping-ng/issues/842 +- Fixed page freeze issue for incidents https://github.com/statping-ng/statping-ng/issues/842 - Modified cache routine from 5 seconds to 60 seconds # 0.90.69 (09-18-2020) @@ -200,12 +200,12 @@ # 0.90.46 (06-04-2020) - Add i18n language translations for frontend -- Added PR for heatmap https://github.com/adamboutcher/statping-ng/pull/589 +- Added PR for heatmap https://github.com/statping-ng/statping-ng/pull/589 - Added Statping newsletter option during /setup mode - Fix for disabling logs with `DISABLE_LOGS` env # 0.90.45 (06-01-2020) -- Merged PR [#612](https://github.com/adamboutcher/statping-ng/pull/612) for edit/create service issue. +- Merged PR [#612](https://github.com/statping-ng/statping-ng/pull/612) for edit/create service issue. # 0.90.44 (05-25-2020) - Modified Makefile to include "netgo" tag during golang build @@ -248,8 +248,8 @@ - Added additional Postman API doc endpoints # 0.90.34 (04-28-2020) -- Added missing information to Mail notification ([#472](https://github.com/adamboutcher/statping-ng/issues/472)) -- Added service.yml file to auto create services (https://github.com/adamboutcher/statping-ng/wiki/services.yml) +- Added missing information to Mail notification ([#472](https://github.com/statping-ng/statping-ng/issues/472)) +- Added service.yml file to auto create services (https://github.com/statping-ng/statping-ng/wiki/services.yml) - Removed Core API_KEY, (unused code, use API_SECRET) # 0.90.33 (04-24-2020) @@ -354,7 +354,7 @@ - Organized utils package files # 0.90.15 -- Fixed /dashboard authentication state to show admin tabs if your an admin. [Issue #438](https://github.com/adamboutcher/statping-ng/issues/438) +- Fixed /dashboard authentication state to show admin tabs if your an admin. [Issue #438](https://github.com/statping-ng/statping-ng/issues/438) - Fixed Cache JS error on Dashboard # 0.90.14 @@ -368,7 +368,7 @@ - Updated JS function `convertToChartData` to return an empty chart data if API response was empty. - Updated `banner.png` to make a bit smaller, (680px) - Fixed method that returns `no such table: services` on startup, check table first. -- Fixed version from not being added into Core table. [Issue #436](https://github.com/adamboutcher/statping-ng/issues/436) +- Fixed version from not being added into Core table. [Issue #436](https://github.com/statping-ng/statping-ng/issues/436) # 0.90.12 - Fixed MySQL timestamp formatting. (issue #432) diff --git a/Makefile b/Makefile index fbd195f9..134a705c 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ go-build: clean lint: go fmt ./... golint ./... - impi --local github.com/statping/statping/ --scheme stdLocalThirdParty ./... + impi --local github.com/statping-ng/statping-ng/ --scheme stdLocalThirdParty ./... goimports ./... up: @@ -337,10 +337,10 @@ sentry-release: download-bins: clean mkdir build || true - wget "https://github.com/statping/statping/releases/download/v${VERSION}/statping-linux-386.tar.gz" - wget "https://github.com/statping/statping/releases/download/v${VERSION}/statping-linux-amd64.tar.gz" - wget "https://github.com/statping/statping/releases/download/v${VERSION}/statping-linux-arm.tar.gz" - wget "https://github.com/statping/statping/releases/download/v${VERSION}/statping-linux-arm64.tar.gz" + wget "https://github.com/statping-ng/statping-ng/releases/download/v${VERSION}/statping-linux-386.tar.gz" + wget "https://github.com/statping-ng/statping-ng/releases/download/v${VERSION}/statping-linux-amd64.tar.gz" + wget "https://github.com/statping-ng/statping-ng/releases/download/v${VERSION}/statping-linux-arm.tar.gz" + wget "https://github.com/statping-ng/statping-ng/releases/download/v${VERSION}/statping-linux-arm64.tar.gz" mv statping-linux-386.tar.gz build/ mv statping-linux-amd64.tar.gz build/ mv statping-linux-arm.tar.gz build/ diff --git a/README.md b/README.md index d3e51e15..e6446375 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@
Statping-ng - Web and App Status Monitoring for Any Type of Project
-View Wiki | Demo | iPhone | Android
API | Docker | EC2 | Mac | Linux | Windows
+View Wiki | Demo | iPhone | Android
API | Docker | EC2 | Mac | Linux | Windows
-
-
-
+
+
+
@@ -65,7 +65,7 @@ Statping-ng includes email notification via SMTP and Slack integration using [In
- Checkout the Service struct and the Failures struct and create variables in golang template format. + Checkout the Service struct and the Failures struct and create variables in golang template format.
diff --git a/frontend/src/pages/Help.vue b/frontend/src/pages/Help.vue index a189b19a..8f38385d 100755 --- a/frontend/src/pages/Help.vue +++ b/frontend/src/pages/Help.vue @@ -82,19 +82,19 @@
View the Docker Wiki for more information and advanced usage.
+View the Docker Wiki for more information and advanced usage.
docker run -it -p 8080:8080 statping/statping
View the Mac Wiki for more information and other methods.
+View the Mac Wiki for more information and other methods.
brew tap statping/statping
brew install statping
@@ -102,7 +102,7 @@ brew install statping
Linux
-View the Linux Wiki for more information and other methods.
+View the Linux Wiki for more information and other methods.
curl -o- -L https://statping.com/install.sh | bash
@@ -114,7 +114,7 @@ brew install statping
Windows
-Download the latest version as an .exe
from Releases. View the Windows Wiki for more information and other methods.
+Download the latest version as an .exe
from Releases. View the Windows Wiki for more information and other methods.
EC2
@@ -139,7 +139,7 @@ brew install statping
Plugins
-Statping is an awesome Status Page generator that allows you to create your own plugins with Golang Plugins! You don’t need to request a PR or even tell us about your plugin. Plugin’s are compiled and then send as a binary to the Statping /plugins
folder. Test your plugins using the statup test plugin
command, checkout the Plugin Wiki to see detailed information about creating plugins.
+Statping is an awesome Status Page generator that allows you to create your own plugins with Golang Plugins! You don’t need to request a PR or even tell us about your plugin. Plugin’s are compiled and then send as a binary to the Statping /plugins
folder. Test your plugins using the statup test plugin
command, checkout the Plugin Wiki to see detailed information about creating plugins.
No Maintenance
@@ -151,7 +151,7 @@ brew install statping
Prometheus Exporter
-If you want a deeper view of your applications status, you can use Grafana and Prometheus to graph all types of data about your services. Read more about the Prometheus Exporter
+If you want a deeper view of your applications status, you can use Grafana and Prometheus to graph all types of data about your services. Read more about the Prometheus Exporter
@@ -211,7 +211,7 @@ brew install statping
Statping includes multiple Notifiers to alert you when your services are offline. You can also create your own notifier and send a Push Request to this repo! Creating a custom notifier is pretty easy as long as you follow the requirements. A notifier will automatically be installed into the users Statping database, and form values will save without any hassles. 💃
-Example Code | Events | View Notifiers
+Example Code | Events | View Notifiers
Notifier Requirements
@@ -224,7 +224,7 @@ brew install statping
Notifier Interface (required)
-Statping has the Notifier
interface which you’ll need to include in your notifier. Statping includes many other events/triggers for your notifier, checkout Notifier Events to see all of them.
+Statping has the Notifier
interface which you’ll need to include in your notifier. Statping includes many other events/triggers for your notifier, checkout Notifier Events to see all of them.
// Notifier interface is required to create a new Notifier
type Notifier interface {
@@ -305,7 +305,7 @@ type NotificationForm struct {
Adding Notifiers
-To add a notifier to the Statping application, simply append your Notifier in the AttachNotifiers()
function inside of core/core.go.
+To add a notifier to the Statping application, simply append your Notifier in the AttachNotifiers()
function inside of core/core.go.
// AttachNotifiers will attach all the notifier's into the system
func AttachNotifiers() error {
@@ -323,7 +323,7 @@ func AttachNotifiers() error {
}
-AttachNotifiers
+AttachNotifiers
@@ -339,7 +339,7 @@ func AttachNotifiers() error {
Updating Statping is very simple, you can choose one of the options below:
- Run command: statping update
(you may need to run sudo depending on your server)
- or Run command: curl -o- -L https://statping.com/install.sh | bash
-- or download tar.gz file from Latest Releases and extract for statping
.
+- or download tar.gz file from Latest Releases and extract for statping
.
Blank/White Page
@@ -370,7 +370,7 @@ func AttachNotifiers() error {
Bulk Import Services
- You can import multiple services when Statping first loads by creating a file named services.yml in the working directory for Statping. It will insert the new service into the database, and will not be re-added on reboot. All services must be an array under the services:
field.
+ You can import multiple services when Statping first loads by creating a file named services.yml in the working directory for Statping. It will insert the new service into the database, and will not be re-added on reboot. All services must be an array under the services:
field.
Dynamic Yaml
@@ -428,7 +428,7 @@ services:
Environment Variables
- This page will list all environment variables that could be passed into Statping. You can see all default values in utils/env.go file under the InitEnvs()
function.
+ This page will list all environment variables that could be passed into Statping. You can see all default values in utils/env.go file under the InitEnvs()
function.
Statping Server
@@ -447,7 +447,7 @@ services:
Automatic SSL Certificate
-With LetsEncrypt enabled, Statping will run through the SSL process and create the SSL certs in the certs
folder. Read more about the SSL Process on the SSL Wiki.
+
With LetsEncrypt enabled, Statping will run through the SSL process and create the SSL certs in the certs
folder. Read more about the SSL Process on the SSL Wiki.
- LETSENCRYPT_ENABLE
- Set to true to have LetsEncrypt enabled. (defaults to false)
- LETSENCRYPT_HOST
- Domain to generate SSL certificate
- LETSENCRYPT_EMAIL
- Email address that gets sent with the LetsEncrypt Request
@@ -476,7 +476,7 @@ services:
BASE_PATH
- Set the base URL prefix (set to ‘monitor’ if URL is domain.com/monitor)
-PREFIX
- A Prefix for each value in Prometheus /metric exporter
+PREFIX
- A Prefix for each value in Prometheus /metric exporter
HTTP_PROXY
- Use a HTTP Proxy for HTTP Requests
@@ -666,7 +666,7 @@ auto-include many customized parameters to get everything working correctly.
Dependencies
Statping has a couple of required dependencies when testing and compiling the
-binary. The Makefile
+binary. The Makefile
will make these tasks a lot easier. Take a look at the Makefile to see what
commands are running. Run the command below to get setup right away.
@@ -748,7 +748,7 @@ changes, and submit a Pull Request with the features/bugs you added or removed.<
changed by usingchangelog-go.
If your PR is related to an Issue (ie. on a bug fix or when adding a new notifier)
-don’t forget adding the related GitHub Issue ID like this: [#270](https://github.com/statping/statping/issues/270)
+don’t forget adding the related GitHub Issue ID like this: [#270](https://github.com/statping-ng/statping-ng/issues/270)
Check out the example below.
Adding one changelog entry should be done in a separate Commit - not only
because this is a good Committing practice, also because it’s separated by your
@@ -759,7 +759,7 @@ where all changes of a new Version are documented.
Example for fixing a bug in the UI
-
~] changelog new "Fix zooming out on graph doesn't load additional data ([#270](https://github.com/statping/statping/issues/270))"
+~] changelog new "Fix zooming out on graph doesn't load additional data ([#270](https://github.com/statping-ng/statping-ng/issues/270))"
[0] New Feature (Added)
[1] Bug Fix (Fixed)
[2] Feature change (Changed)
@@ -833,7 +833,7 @@ where all changes of a new Version are documented.
Attach a SSL Certificate
-When you mount server.crt
and server.key
to the /app
directory, Statping will run a HTTPS server on port 443. Checkout the SSL Wiki documentation to see more information about this.
+When you mount server.crt
and server.key
to the /app
directory, Statping will run a HTTPS server on port 443. Checkout the SSL Wiki documentation to see more information about this.
docker run -d \
-p 443:443 \
@@ -1043,7 +1043,7 @@ networks:
Docker-Compose
- This page includes multiple docker-compose.yml setups for you to run. There are many environment variables for additional settings and features, checkout the Environment Variables Wiki to see them all.
+ This page includes multiple docker-compose.yml setups for you to run. There are many environment variables for additional settings and features, checkout the Environment Variables Wiki to see them all.
@@ -1248,7 +1248,7 @@ nginx-ssl:
Grafana Dashboard with Prometheus
-Grafana is an awesome metric visualizer that allows you to create some awesome dashboards. We’ve already created a Grafana Dashboard that you can easy import! Checkout the Grafana Wiki and the Prometheus Exporter Wiki for more details.
+Grafana is an awesome metric visualizer that allows you to create some awesome dashboards. We’ve already created a Grafana Dashboard that you can easy import! Checkout the Grafana Wiki and the Prometheus Exporter Wiki for more details.
prometheus.yml
config file
@@ -1399,8 +1399,8 @@ networks:
You can upgrade the Statping executable by running the commands below on your EC2 instance.
-VERSION=$(curl -s "https://github.com/statping/statping/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')
-wget https://github.com/statping/statping/releases/download/$VERSION/statping-linux-x64.tar.gz
+VERSION=$(curl -s "https://github.com/statping-ng/statping-ng/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')
+wget https://github.com/statping-ng/statping-ng/releases/download/$VERSION/statping-linux-x64.tar.gz
tar -xvzf statping-linux-x64.tar.gz
chmod +x statping
mv statping /usr/local/bin/statping
@@ -1588,10 +1588,10 @@ systemctl start statping
Raspberry Pi
-You can even run Statping on your Raspberry Pi by installing the precompiled binary from Latest Releases. For the Raspberry Pi 3 you’ll want to download the statping-linux-arm7.tar.gz
file. Be sure to change VERSION
to the latest version in Releases, and include the ‘v’.
+You can even run Statping on your Raspberry Pi by installing the precompiled binary from Latest Releases. For the Raspberry Pi 3 you’ll want to download the statping-linux-arm7.tar.gz
file. Be sure to change VERSION
to the latest version in Releases, and include the ‘v’.
-VERSION=$(curl -sL "https://github.com/statping/statping/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}' | head -n1)
-wget https://github.com/statping/statping/releases/download/$VERSION/statping-linux-arm-7.tar.gz
+VERSION=$(curl -sL "https://github.com/statping-ng/statping-ng/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}' | head -n1)
+wget https://github.com/statping-ng/statping-ng/releases/download/$VERSION/statping-linux-arm-7.tar.gz
tar -xvzf statping-linux-arm-7.tar.gz
chmod +x statping
mv statping /usr/local/bin/statping
@@ -1601,7 +1601,7 @@ statping version
Alpine Linux
-The Docker image is using the Statping Alpine binary since it’s so incredibly small. You can run it on your own alpine image by downloading statping-linux-alpine.tar.gz
from Latest Releases.
+The Docker image is using the Statping Alpine binary since it’s so incredibly small. You can run it on your own alpine image by downloading statping-linux-alpine.tar.gz
from Latest Releases.
@@ -1612,7 +1612,7 @@ statping version
Installing on Windows
-Currently, Statping only works on Windows 64-bit computers. Just download the exe file from Latest Releases and run it in your command prompt. It will create a HTTP server on port 8080, so you can visit http://localhost:8080
to see your Statping Status Page.
+Currently, Statping only works on Windows 64-bit computers. Just download the exe file from Latest Releases and run it in your command prompt. It will create a HTTP server on port 8080, so you can visit http://localhost:8080
to see your Statping Status Page.
Compiling SCSS for Custom Theme
@@ -1638,7 +1638,7 @@ statping version
Known Issues with Windows
-Unfortunately, Statping only works on Windows 64-bit processors. If you have more than 4gb of ram, there’s a good chance you already have a 64-bit processor. Download the Latest Releases of Statping, extract the ZIP file, then double click on the statping.exe
file. You can use a SQLite database for a quick setup, or connect to a local/remote Postgres or MySQL database server.
+Unfortunately, Statping only works on Windows 64-bit processors. If you have more than 4gb of ram, there’s a good chance you already have a 64-bit processor. Download the Latest Releases of Statping, extract the ZIP file, then double click on the statping.exe
file. You can use a SQLite database for a quick setup, or connect to a local/remote Postgres or MySQL database server.
@@ -1656,7 +1656,7 @@ statping version
Statping Yaml Config
-You can include multiple environment variables to the configg file. If you include DB_CONN
Statping will attempt to automatically connect to that database. View the Full List of Environment Variables to fully customize this config.
+You can include multiple environment variables to the configg file. If you include DB_CONN
Statping will attempt to automatically connect to that database. View the Full List of Environment Variables to fully customize this config.
applications:
- name: statping
@@ -1701,13 +1701,13 @@ statping version
Useful Codebase
-handlers/routes.go - Contains all the HTTP request routes
+handlers/routes.go - Contains all the HTTP request routes
-cmd/commands.go - CLI Commands
+cmd/commands.go - CLI Commands
-types/service/struct.go - Service struct
+types/service/struct.go - Service struct
-types/core/struct.go - Core struct
+types/core/struct.go - Core struct
Deployment Process
@@ -1720,11 +1720,11 @@ statping version
SASS will generate a compiled version of the CSS.
Statping Help page is generated by cloning the Wiki repo using go generate
.
Travis-CI tests the Golang application.
-Travis-CI tests the Statping API using Postman.
+Travis-CI tests the Statping API using Postman.
If all tests are successful, Travis-CI will compile the binaries using xgo.
-Binaries are code signed using the official PGP key and compressed.
+Binaries are code signed using the official PGP key and compressed.
Docker receives a trigger to build for the latest
tag.
-Travis-CI uploads the latest release as a tagged version on Github.
+Travis-CI uploads the latest release as a tagged version on Github.
Travis-CI updates the homebrew-statping repo with the latest version.
@@ -1737,10 +1737,10 @@ statping version
Makefile
- Here’s a simple list of Makefile commands you can run using make
. The Makefile may change often, so i’ll try to keep this Wiki up-to-date.
+ Here’s a simple list of Makefile commands you can run using make
. The Makefile may change often, so i’ll try to keep this Wiki up-to-date.
Useful Commands
@@ -1797,7 +1797,7 @@ statping version
Statping implements the GraphQL API interface so you can customize the exact data you need within a query. The GraphQL endpoint is at /graphql
on your Statping instance and is only available for Authenticated users or while sending the Authorization
API Secret.
-View schema.graphql
+View schema.graphql
@@ -1866,7 +1866,7 @@ statping version
-The code for handling GraphQL requests is in handlers/graphql and is using gqlgen to automatically generate the schema based on the golang structs.
+The code for handling GraphQL requests is in handlers/graphql and is using gqlgen to automatically generate the schema based on the golang structs.
@@ -2109,7 +2109,7 @@ CMD_FILE=/bin/bash
config.yml
- The config.yml
file contains all of the Statping database settings and API keys/secrets. When Statping loads, it will attempt to open this file to parse it’s core values. You can view the Go type file on types/types.go.
+ The config.yml
file contains all of the Statping database settings and API keys/secrets. When Statping loads, it will attempt to open this file to parse it’s core values. You can view the Go type file on types/types.go.
config.yml
Parameters
@@ -2129,7 +2129,7 @@ CMD_FILE=/bin/bash
Using Environment Variables instead of config.yml
-You technically don’t need this config.yml
file to run Statping. You can also run the Statping server by including environment variables when you start the server. You can view all the available variables by viewing the Config with .env Wiki page.
+You technically don’t need this config.yml
file to run Statping. You can also run the Statping server by including environment variables when you start the server. You can view all the available variables by viewing the Config with .env Wiki page.
Statping will auto run with environment variables if DB_CONN
is set!
@@ -2236,7 +2236,7 @@ statping_service_response_length{id="2" name="Statping.com"}
Steps to Authenticate
-- Download the Statping
tar.gz
file from Latest Releases and extract the statping
binary and the statup.asc
file.
+- Download the Statping
tar.gz
file from Latest Releases and extract the statping
binary and the statup.asc
file.
- Run command:
gpg --verify statping.asc
- You should see
Good signature from "Hunter Long <info@statping.com>" [ultimate]
.
@@ -2314,7 +2314,7 @@ OluFxewsEO0QNDrfFb+0gnjYlnGqOFcZjUMXbDdY5oLSPtXohynuTK1qyQ==
-Statping.com | Demo | Docker | Notifiers | API
+Statping.com | Demo | Docker | Notifiers | API
diff --git a/frontend/src/pages/Settings.vue b/frontend/src/pages/Settings.vue
index e6e5be97..0dfd69b8 100644
--- a/frontend/src/pages/Settings.vue
+++ b/frontend/src/pages/Settings.vue
@@ -8,10 +8,10 @@
Update {{github.tag_name}} Available
@@ -48,11 +48,11 @@
Statping {{$t('links')}}
-
+
{{$t('docs')}}
-
+
API {{$t('docs')}}
@@ -65,7 +65,7 @@
Statping v{{core.version}}
- {{core.commit.slice(0,8)}}
+ {{core.commit.slice(0,8)}}
diff --git a/handlers/api.go b/handlers/api.go
index 74036a78..bdd2e343 100644
--- a/handlers/api.go
+++ b/handlers/api.go
@@ -2,18 +2,18 @@ package handlers
import (
"fmt"
- "github.com/adamboutcher/statping-ng/types/checkins"
- "github.com/adamboutcher/statping-ng/types/configs"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/groups"
- "github.com/adamboutcher/statping-ng/types/incidents"
- "github.com/adamboutcher/statping-ng/types/messages"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/types/users"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/checkins"
+ "github.com/statping-ng/statping-ng/types/configs"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/groups"
+ "github.com/statping-ng/statping-ng/types/incidents"
+ "github.com/statping-ng/statping-ng/types/messages"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/types/users"
+ "github.com/statping-ng/statping-ng/utils"
"net/http"
"time"
)
diff --git a/handlers/api_test.go b/handlers/api_test.go
index a0fb2905..a81dadf8 100644
--- a/handlers/api_test.go
+++ b/handlers/api_test.go
@@ -5,15 +5,15 @@ import (
"encoding/json"
"fmt"
"github.com/pkg/errors"
- _ "github.com/adamboutcher/statping-ng/notifiers"
- "github.com/adamboutcher/statping-ng/source"
- "github.com/adamboutcher/statping-ng/types/checkins"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/groups"
- "github.com/adamboutcher/statping-ng/types/messages"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/types/users"
- "github.com/adamboutcher/statping-ng/utils"
+ _ "github.com/statping-ng/statping-ng/notifiers"
+ "github.com/statping-ng/statping-ng/source"
+ "github.com/statping-ng/statping-ng/types/checkins"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/groups"
+ "github.com/statping-ng/statping-ng/types/messages"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/types/users"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"io/ioutil"
diff --git a/handlers/authentication.go b/handlers/authentication.go
index 5eb08f14..9948079a 100644
--- a/handlers/authentication.go
+++ b/handlers/authentication.go
@@ -2,9 +2,9 @@ package handlers
import (
"crypto/subtle"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/users"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/users"
+ "github.com/statping-ng/statping-ng/utils"
"net/http"
"strings"
)
diff --git a/handlers/checkin.go b/handlers/checkin.go
index b73c9072..1badb57a 100644
--- a/handlers/checkin.go
+++ b/handlers/checkin.go
@@ -2,10 +2,10 @@ package handlers
import (
"github.com/gorilla/mux"
- "github.com/adamboutcher/statping-ng/types/checkins"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/checkins"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"net"
"net/http"
)
diff --git a/handlers/dashboard.go b/handlers/dashboard.go
index 85991a39..59e5d088 100644
--- a/handlers/dashboard.go
+++ b/handlers/dashboard.go
@@ -4,18 +4,18 @@ import (
"bytes"
"encoding/json"
"fmt"
- "github.com/adamboutcher/statping-ng/source"
- "github.com/adamboutcher/statping-ng/types/checkins"
- "github.com/adamboutcher/statping-ng/types/configs"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/groups"
- "github.com/adamboutcher/statping-ng/types/incidents"
- "github.com/adamboutcher/statping-ng/types/messages"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/types/users"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/source"
+ "github.com/statping-ng/statping-ng/types/checkins"
+ "github.com/statping-ng/statping-ng/types/configs"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/groups"
+ "github.com/statping-ng/statping-ng/types/incidents"
+ "github.com/statping-ng/statping-ng/types/messages"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/types/users"
+ "github.com/statping-ng/statping-ng/utils"
"gopkg.in/yaml.v2"
"io"
"io/ioutil"
diff --git a/handlers/function.go b/handlers/function.go
index 670ecb3d..20d145fb 100644
--- a/handlers/function.go
+++ b/handlers/function.go
@@ -1,9 +1,9 @@
package handlers
import (
- "github.com/adamboutcher/statping-ng/source"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/source"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/utils"
"html/template"
"net/http"
"net/url"
diff --git a/handlers/groups.go b/handlers/groups.go
index ab9bdc4e..efa0e0ca 100644
--- a/handlers/groups.go
+++ b/handlers/groups.go
@@ -2,9 +2,9 @@ package handlers
import (
"github.com/gorilla/mux"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/groups"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/groups"
+ "github.com/statping-ng/statping-ng/utils"
"net/http"
)
diff --git a/handlers/groups_test.go b/handlers/groups_test.go
index 03bf7654..84c29dbc 100644
--- a/handlers/groups_test.go
+++ b/handlers/groups_test.go
@@ -1,8 +1,8 @@
package handlers
import (
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/groups"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/groups"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/handlers/handlers.go b/handlers/handlers.go
index 2dbb1a08..33346bac 100644
--- a/handlers/handlers.go
+++ b/handlers/handlers.go
@@ -3,14 +3,14 @@ package handlers
import (
"encoding/json"
"fmt"
- "github.com/adamboutcher/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/errors"
"html/template"
"net/http"
"path"
"time"
- "github.com/adamboutcher/statping-ng/source"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/source"
+ "github.com/statping-ng/statping-ng/utils"
)
const (
diff --git a/handlers/incident.go b/handlers/incident.go
index 4d7c08c2..6e1a4d95 100644
--- a/handlers/incident.go
+++ b/handlers/incident.go
@@ -2,9 +2,9 @@ package handlers
import (
"github.com/gorilla/mux"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/incidents"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/incidents"
+ "github.com/statping-ng/statping-ng/utils"
"net/http"
)
diff --git a/handlers/index.go b/handlers/index.go
index 1df34848..8e54d6f6 100644
--- a/handlers/index.go
+++ b/handlers/index.go
@@ -1,8 +1,8 @@
package handlers
import (
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/services"
"net/http"
)
diff --git a/handlers/jwt.go b/handlers/jwt.go
index 614b1028..de2bd9f9 100644
--- a/handlers/jwt.go
+++ b/handlers/jwt.go
@@ -3,7 +3,7 @@ package handlers
import (
"github.com/dgrijalva/jwt-go"
"github.com/pkg/errors"
- "github.com/adamboutcher/statping-ng/types/users"
+ "github.com/statping-ng/statping-ng/types/users"
"net/http"
"time"
)
diff --git a/handlers/messages.go b/handlers/messages.go
index e1bb3e24..f4e5e46f 100644
--- a/handlers/messages.go
+++ b/handlers/messages.go
@@ -2,9 +2,9 @@ package handlers
import (
"github.com/gorilla/mux"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/messages"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/messages"
+ "github.com/statping-ng/statping-ng/utils"
"net/http"
)
diff --git a/handlers/middleware.go b/handlers/middleware.go
index 19c20add..a3b621fc 100644
--- a/handlers/middleware.go
+++ b/handlers/middleware.go
@@ -7,10 +7,10 @@ import (
"fmt"
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/metrics"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/metrics"
+ "github.com/statping-ng/statping-ng/utils"
"io"
"net/http"
"strings"
diff --git a/handlers/notifications.go b/handlers/notifications.go
index 23e7108e..9efe8586 100644
--- a/handlers/notifications.go
+++ b/handlers/notifications.go
@@ -2,10 +2,10 @@ package handlers
import (
"github.com/gorilla/mux"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/services"
"net/http"
"sort"
)
diff --git a/handlers/notifiers_test.go b/handlers/notifiers_test.go
index 3976d14b..10d69201 100644
--- a/handlers/notifiers_test.go
+++ b/handlers/notifiers_test.go
@@ -3,9 +3,9 @@ package handlers
import (
"testing"
- "github.com/adamboutcher/statping-ng/notifiers"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/notifiers"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/handlers/oauth.go b/handlers/oauth.go
index 5fb9be6f..f6e71cb8 100644
--- a/handlers/oauth.go
+++ b/handlers/oauth.go
@@ -3,10 +3,10 @@ package handlers
import (
"fmt"
"github.com/gorilla/mux"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/users"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/users"
"golang.org/x/oauth2"
"net/http"
)
diff --git a/handlers/oauth_custom.go b/handlers/oauth_custom.go
index 3c3d5e47..a4422b01 100644
--- a/handlers/oauth_custom.go
+++ b/handlers/oauth_custom.go
@@ -1,8 +1,8 @@
package handlers
import (
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/errors"
"golang.org/x/oauth2"
"net/http"
"strings"
diff --git a/handlers/oauth_github.go b/handlers/oauth_github.go
index a3a3dfbe..ffc635fa 100644
--- a/handlers/oauth_github.go
+++ b/handlers/oauth_github.go
@@ -2,9 +2,9 @@ package handlers
import (
"encoding/json"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/utils"
"golang.org/x/oauth2"
"golang.org/x/oauth2/github"
"net/http"
diff --git a/handlers/oauth_google.go b/handlers/oauth_google.go
index c4955ebe..824d8bdf 100644
--- a/handlers/oauth_google.go
+++ b/handlers/oauth_google.go
@@ -2,9 +2,9 @@ package handlers
import (
"encoding/json"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/utils"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
"net/http"
diff --git a/handlers/oauth_slack.go b/handlers/oauth_slack.go
index 56b7d249..cccdfa92 100644
--- a/handlers/oauth_slack.go
+++ b/handlers/oauth_slack.go
@@ -3,9 +3,9 @@ package handlers
import (
"encoding/json"
"fmt"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/utils"
"golang.org/x/oauth2"
"golang.org/x/oauth2/slack"
"net/http"
diff --git a/handlers/routes.go b/handlers/routes.go
index a11d120e..07fb2fc2 100644
--- a/handlers/routes.go
+++ b/handlers/routes.go
@@ -3,13 +3,13 @@ package handlers
import (
"github.com/gorilla/mux"
"github.com/prometheus/client_golang/prometheus/promhttp"
- "github.com/adamboutcher/statping-ng/source"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/source"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/utils"
"net/http"
"net/http/pprof"
- _ "github.com/adamboutcher/statping-ng/types/metrics"
+ _ "github.com/statping-ng/statping-ng/types/metrics"
)
var (
diff --git a/handlers/server.go b/handlers/server.go
index 47f8d38a..68df76a2 100644
--- a/handlers/server.go
+++ b/handlers/server.go
@@ -5,7 +5,7 @@ import (
"fmt"
"github.com/foomo/simplecert"
"github.com/foomo/tlsconfig"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/utils"
"net/http"
"strings"
)
diff --git a/handlers/services.go b/handlers/services.go
index 44be79bf..2de29f4b 100644
--- a/handlers/services.go
+++ b/handlers/services.go
@@ -2,12 +2,12 @@ package handlers
import (
"github.com/gorilla/mux"
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/hits"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/hits"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"net/http"
)
diff --git a/handlers/services_test.go b/handlers/services_test.go
index 2237fc7d..5b1b0d40 100644
--- a/handlers/services_test.go
+++ b/handlers/services_test.go
@@ -4,10 +4,10 @@ import (
"encoding/json"
"fmt"
"github.com/pkg/errors"
- "github.com/adamboutcher/statping-ng/types"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"net/http/httptest"
diff --git a/handlers/setup.go b/handlers/setup.go
index c0d48bec..44d3fed5 100644
--- a/handlers/setup.go
+++ b/handlers/setup.go
@@ -2,12 +2,12 @@ package handlers
import (
"errors"
- "github.com/adamboutcher/statping-ng/notifiers"
- "github.com/adamboutcher/statping-ng/types/configs"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/notifiers"
+ "github.com/statping-ng/statping-ng/types/configs"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"net/http"
"net/url"
"strconv"
diff --git a/handlers/theme_test.go b/handlers/theme_test.go
index de123268..e6004381 100644
--- a/handlers/theme_test.go
+++ b/handlers/theme_test.go
@@ -1,8 +1,8 @@
package handlers
import (
- "github.com/adamboutcher/statping-ng/source"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/source"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"testing"
)
diff --git a/handlers/users.go b/handlers/users.go
index 4adf7f6c..3011d510 100644
--- a/handlers/users.go
+++ b/handlers/users.go
@@ -3,9 +3,9 @@ package handlers
import (
"fmt"
"github.com/gorilla/mux"
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/users"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/users"
+ "github.com/statping-ng/statping-ng/utils"
"net/http"
)
diff --git a/handlers/users_test.go b/handlers/users_test.go
index 7641ac81..e0b62206 100644
--- a/handlers/users_test.go
+++ b/handlers/users_test.go
@@ -1,7 +1,7 @@
package handlers
import (
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"net/url"
diff --git a/notifiers/amazon_sns.go b/notifiers/amazon_sns.go
index 34d21b7d..c3f0c927 100644
--- a/notifiers/amazon_sns.go
+++ b/notifiers/amazon_sns.go
@@ -8,12 +8,12 @@ import (
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/sns"
- "github.com/adamboutcher/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/services"
)
var _ notifier.Notifier = (*amazonSNS)(nil)
diff --git a/notifiers/amazon_sns_test.go b/notifiers/amazon_sns_test.go
index e219f9da..b34fa61c 100644
--- a/notifiers/amazon_sns_test.go
+++ b/notifiers/amazon_sns_test.go
@@ -4,13 +4,13 @@ import (
"testing"
"time"
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/notifiers/command.go b/notifiers/command.go
index 560c987a..fef5e628 100644
--- a/notifiers/command.go
+++ b/notifiers/command.go
@@ -1,13 +1,13 @@
package notifiers
import (
- "github.com/adamboutcher/statping-ng/types/errors"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"strings"
"time"
)
diff --git a/notifiers/command_test.go b/notifiers/command_test.go
index e849f826..292e568c 100644
--- a/notifiers/command_test.go
+++ b/notifiers/command_test.go
@@ -4,13 +4,13 @@ import (
"testing"
"time"
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/notifiers/discord.go b/notifiers/discord.go
index b6bb674c..bee52f85 100644
--- a/notifiers/discord.go
+++ b/notifiers/discord.go
@@ -7,12 +7,12 @@ import (
"strings"
"time"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
)
var _ notifier.Notifier = (*discord)(nil)
diff --git a/notifiers/discord_test.go b/notifiers/discord_test.go
index 8088e2e2..96463a94 100644
--- a/notifiers/discord_test.go
+++ b/notifiers/discord_test.go
@@ -1,13 +1,13 @@
package notifiers
import (
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/notifiers/email.go b/notifiers/email.go
index ec595a1e..bdbb75ca 100644
--- a/notifiers/email.go
+++ b/notifiers/email.go
@@ -6,12 +6,12 @@ import (
"github.com/go-mail/mail"
"github.com/statping/emails"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
)
var _ notifier.Notifier = (*emailer)(nil)
diff --git a/notifiers/email_test.go b/notifiers/email_test.go
index 7788669a..3702441c 100644
--- a/notifiers/email_test.go
+++ b/notifiers/email_test.go
@@ -1,13 +1,13 @@
package notifiers
import (
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/notifiers/generate.go b/notifiers/generate.go
index 3d1f14e1..cfa4f7f2 100644
--- a/notifiers/generate.go
+++ b/notifiers/generate.go
@@ -9,7 +9,7 @@ import (
"os"
"time"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/tdewolff/minify/v2"
"github.com/tdewolff/minify/v2/html"
)
diff --git a/notifiers/gotify.go b/notifiers/gotify.go
index d002c0db..e2df1fdb 100644
--- a/notifiers/gotify.go
+++ b/notifiers/gotify.go
@@ -4,13 +4,13 @@ import (
"strings"
"time"
- "github.com/adamboutcher/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
)
var _ notifier.Notifier = (*gotify)(nil)
diff --git a/notifiers/gotify_test.go b/notifiers/gotify_test.go
index df881a80..34465e65 100644
--- a/notifiers/gotify_test.go
+++ b/notifiers/gotify_test.go
@@ -4,13 +4,13 @@ import (
"testing"
"time"
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/notifiers/line_notify.go b/notifiers/line_notify.go
index be5d437c..d29f2d25 100644
--- a/notifiers/line_notify.go
+++ b/notifiers/line_notify.go
@@ -2,11 +2,11 @@ package notifiers
import (
"fmt"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"net/url"
"strings"
"time"
diff --git a/notifiers/mobile.go b/notifiers/mobile.go
index ba532cdb..3cc58823 100644
--- a/notifiers/mobile.go
+++ b/notifiers/mobile.go
@@ -4,11 +4,11 @@ import (
"bytes"
"encoding/json"
"fmt"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"time"
)
diff --git a/notifiers/mobile_test.go b/notifiers/mobile_test.go
index c2591387..af35ed11 100644
--- a/notifiers/mobile_test.go
+++ b/notifiers/mobile_test.go
@@ -1,13 +1,13 @@
package notifiers
import (
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/notifiers/notifiers.go b/notifiers/notifiers.go
index 148ca683..54fa7aa6 100644
--- a/notifiers/notifiers.go
+++ b/notifiers/notifiers.go
@@ -5,10 +5,10 @@ import (
"html/template"
"time"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
)
//go:generate go run generate.go
diff --git a/notifiers/notifiers_test.go b/notifiers/notifiers_test.go
index 1fdfee85..0ebe1ad1 100644
--- a/notifiers/notifiers_test.go
+++ b/notifiers/notifiers_test.go
@@ -3,8 +3,8 @@ package notifiers
import (
"testing"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/services"
"github.com/stretchr/testify/assert"
)
diff --git a/notifiers/pushover.go b/notifiers/pushover.go
index bf792c69..1bde4ad0 100644
--- a/notifiers/pushover.go
+++ b/notifiers/pushover.go
@@ -6,12 +6,12 @@ import (
"strings"
"time"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
)
const (
diff --git a/notifiers/pushover_test.go b/notifiers/pushover_test.go
index bd61d771..3f189019 100644
--- a/notifiers/pushover_test.go
+++ b/notifiers/pushover_test.go
@@ -1,13 +1,13 @@
package notifiers
import (
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/notifiers/slack.go b/notifiers/slack.go
index 42f9f35b..b344eaa8 100644
--- a/notifiers/slack.go
+++ b/notifiers/slack.go
@@ -6,12 +6,12 @@ import (
"strings"
"time"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
)
var _ notifier.Notifier = (*slack)(nil)
diff --git a/notifiers/slack_test.go b/notifiers/slack_test.go
index 464f4f49..4314c6ba 100644
--- a/notifiers/slack_test.go
+++ b/notifiers/slack_test.go
@@ -1,13 +1,13 @@
package notifiers
import (
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/notifiers/statping_emailer.go b/notifiers/statping_emailer.go
index b1ab86cb..c6026c0e 100644
--- a/notifiers/statping_emailer.go
+++ b/notifiers/statping_emailer.go
@@ -3,12 +3,12 @@ package notifiers
import (
"bytes"
"encoding/json"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"time"
)
diff --git a/notifiers/statping_emailer_test.go b/notifiers/statping_emailer_test.go
index 9a70d8f9..4c72b3f9 100644
--- a/notifiers/statping_emailer_test.go
+++ b/notifiers/statping_emailer_test.go
@@ -1,13 +1,13 @@
package notifiers
import (
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/notifiers/telegram.go b/notifiers/telegram.go
index 2ea4ea66..e5c87676 100644
--- a/notifiers/telegram.go
+++ b/notifiers/telegram.go
@@ -8,12 +8,12 @@ import (
"strings"
"time"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
)
var _ notifier.Notifier = (*telegram)(nil)
diff --git a/notifiers/telegram_test.go b/notifiers/telegram_test.go
index 47c1342c..d2fd6570 100644
--- a/notifiers/telegram_test.go
+++ b/notifiers/telegram_test.go
@@ -1,13 +1,13 @@
package notifiers
import (
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/notifiers/twilio.go b/notifiers/twilio.go
index 671da117..c589c92f 100644
--- a/notifiers/twilio.go
+++ b/notifiers/twilio.go
@@ -9,12 +9,12 @@ import (
"strings"
"time"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
)
var _ notifier.Notifier = (*twilio)(nil)
diff --git a/notifiers/twilio_test.go b/notifiers/twilio_test.go
index fb875ed1..4cf48e67 100644
--- a/notifiers/twilio_test.go
+++ b/notifiers/twilio_test.go
@@ -1,13 +1,13 @@
package notifiers
import (
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/notifiers/webhook.go b/notifiers/webhook.go
index 6a2ac741..57722a59 100644
--- a/notifiers/webhook.go
+++ b/notifiers/webhook.go
@@ -3,12 +3,12 @@ package notifiers
import (
"bytes"
"fmt"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/notifier"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/notifier"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"io/ioutil"
"net/http"
"strings"
diff --git a/notifiers/webhook_test.go b/notifiers/webhook_test.go
index 105573e1..603e5c7b 100644
--- a/notifiers/webhook_test.go
+++ b/notifiers/webhook_test.go
@@ -3,13 +3,13 @@ package notifiers
import (
"testing"
- "github.com/adamboutcher/statping-ng/database"
- "github.com/adamboutcher/statping-ng/types/core"
- "github.com/adamboutcher/statping-ng/types/failures"
- "github.com/adamboutcher/statping-ng/types/notifications"
- "github.com/adamboutcher/statping-ng/types/null"
- "github.com/adamboutcher/statping-ng/types/services"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
diff --git a/source/source.go b/source/source.go
index 122053f3..20488908 100644
--- a/source/source.go
+++ b/source/source.go
@@ -8,7 +8,7 @@ import (
"fmt"
"github.com/GeertJohan/go.rice"
"github.com/pkg/errors"
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/utils"
"os"
"os/exec"
"path/filepath"
diff --git a/source/source_test.go b/source/source_test.go
index 1ab5e098..3921973f 100644
--- a/source/source_test.go
+++ b/source/source_test.go
@@ -1,7 +1,7 @@
package source
import (
- "github.com/adamboutcher/statping-ng/utils"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/source/wiki.go b/source/wiki.go
index dcc949d4..6635f98f 100644
--- a/source/wiki.go
+++ b/source/wiki.go
@@ -6,4 +6,4 @@
package source
// CompiledWiki contains all of the Statping Wiki pages from the Github Wiki repo.
-var CompiledWiki = []byte("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
\n\nTypes of Monitoring
\nYou can monitor your application by using a simple HTTP GET to the endpoint to return back a response and status code. Normally you want a 200 status code on an HTTP request. You might want to require a 404 or 500 error as a response code though. With each service you can include a Timeout in seconds to work with your long running services.\n\n# HTTP Endpoints with Custom POST\nFor more advanced monitoring you can add a data as a HTTP POST request. This is useful for automatically submitting JSON, or making sure your signup form is working correctly.\n\n\n
\n
\n\nWith a HTTP service, you can POST a JSON string to your endpoint to retrieve any type of response back. You can then use Regex in the Expected Response field to parse a custom response that exactly matches your status requirements. \n\n# TCP/UDP Services\nFor other services that don't use HTTP, you can monitor any type of service by using the PORT of the service. If you're Ethereum Blockchain server is running on 8545, you can use TCP to monitor your server. With a TCP service, you can monitor your Docker containers, or remove service running on a custom port. You don't need to include `http` in the endpoint field, just IP or Hostname.\n\n\n
\n
\n\n# ICMP Service\nYou can send a [ICMP](https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol) (ping) to an endpoint rather than HTTP/TCP/UDP request for a quick response.\n\n\nFeatures
\nStatping is a great Status Page that can be deployed with 0 effort.\n\n# 3 Different Databases\nYou can use MySQL, Postgres, or SQLite as a database for your Statping status page. The server will automatically upgrade your database tables depending on which database you have.\n\n# Easy to Startup\nStatping is an extremely easy to setup website monitoring tool without fussing with dependencies or packages. Simply download and install the precompile binary for your operating system. Statping works on Windows, Mac, Linux, Docker, and even the Raspberry Pi.\n\n# Plugins\nStatping is an awesome Status Page generator that allows you to create your own plugins with Golang Plugins! You don't need to request a PR or even tell us about your plugin. Plugin's are compiled and then send as a binary to the Statping `/plugins` folder. Test your plugins using the `statup test plugin` command, checkout the [Plugin Wiki](https://github.com/statping/statping/wiki/Statping-Plugins) to see detailed information about creating plugins.\n\n# No Maintenance\nMany other website monitoring applications will collect data until the server fails because of hard drive is 100% full. Statping will automatically delete records to make sure your server will stay UP for years. The EC2 AMI Image is a great way to host your status page without worrying about it crashing one day. Statping will automatically upgrade its software when you reboot your computer.\n\n# Email & Slack Notifications\nReceive email notifications if your website or application goes offline. Statping includes SMTP connections so you can use AWS SES, or any other SMTP emailing service. Go in the Email Settings in Settings to configure these options.\n\n# Prometheus Exporter\nIf you want a deeper view of your applications status, you can use Grafana and Prometheus to graph all types of data about your services. Read more about the [Prometheus Exporter](https://github.com/statping/statping/wiki/Prometheus-Exporter)\n\nStart Statping
\n\n\nLinux
\n# Installing on Linux\nInstalling Statping on Linux can be done by downloading the latest tar.gz file, unzipping, and running the executable. You can also install using [Snapcraft](https://snapcraft.io/) for Ubuntu systems.\n\n```shell\ncurl -o- -L https://statping.com/install.sh | bash\n```\n\n## Install using Snapcraft\n\n[](https://snapcraft.io/statping)\n\nIf you are using [snap](https://snapcraft.io/statping), you can simply run this command to install Statping.\n```shell\nsudo snap install statping\n```\n\n# Compiling SCSS for Custom Theme\nStatping requires `sass` to be installed to the local machine to compile SCSS into CSS if you want to use the Custom Theme features. \n\n- Apt: `apt install ruby-sass -y`\n- Node: `npm install sass -g`\n- Ruby: `gem install sass`\n\n## Systemd Service\nSetting up a systemd service is a great way to make sure your Statping server will automatically reboot when needed. You can use the file below for your service. You should have Statping already installed by this step.\n###### /etc/systemd/system/statping.service\n```\n[Unit]\nDescription=Statping Server\nAfter=network.target\nAfter=systemd-user-sessions.service\nAfter=network-online.target\n\n[Service]\nType=simple\nRestart=always\nExecStart=/usr/local/bin/statping\nWorkingDirectory=/usr/local/bin\n\n[Install]\nWantedBy=multi-user.target\n```\nThen you can enable and start your systemd service with:\n```\nsystemctl daemon-reload\n\nsystemctl enable statping.service\n\nsystemctl start statping\n```\nYou're Statping server will now automatically restart when your server restarts.\n\n## Raspberry Pi\nYou can even run Statping on your Raspberry Pi by installing the precompiled binary from [Latest Releases](https://github.com/statping/statping/releases/latest). For the Raspberry Pi 3 you'll want to download the `statping-linux-arm7.tar.gz` file. Be sure to change `VERSION` to the latest version in Releases, and include the 'v'.\n\n```\nVERSION=$(curl -s \"https://github.com/statping/statping/releases/latest\" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')\nwget https://github.com/statping/statping/releases/download/$VERSION/statping-linux-arm7.tar.gz\ntar -xvzf statping-linux-arm7.tar.gz\nchmod +x statping\nmv statping /usr/local/bin/statping\n\nstatping version\n``` \n\n## Alpine Linux\nThe Docker image is using the Statping Alpine binary since it's so incredibly small. You can run it on your own alpine image by downloading `statping-linux-alpine.tar.gz` from [Latest Releases](https://github.com/statping/statping/releases/latest).\n\nMac
\n# Installing on Mac\nStatping includes an easy to use [Homebrew Formula](https://github.com/hunterlong/homebrew-statping) to quick get your Status Page up and running locally. Statping on brew is automatically generated for each new release to master. Install with the commands below,\n###### Using Homebrew\n```bash\nbrew tap statping/statping\nbrew install statping\n```\n###### Using the Terminal\n```shell\ncurl -o- -L https://statping.com/install.sh | bash\n```\n\n\n
\n
\n\nOnce you've installed it, checkout which version you have by running `statping version`.\n\n# Compiling SCSS for Custom Theme\nStatping requires `sass` to be installed to the local machine to compile SCSS into CSS if you want to use the Custom Theme features. \n\n- Node: `npm install sass -g`\n- Ruby: `gem install sass`\n\n\nWindows
\n# Installing on Windows\nCurrently, Statping only works on Windows 64-bit computers. Just download the exe file from [Latest Releases](https://github.com/statping/statping/releases/latest) and run it in your command prompt. It will create a HTTP server on port 8080, so you can visit `http://localhost:8080` to see your Statping Status Page.\n\n# Compiling SCSS for Custom Theme\nStatping requires `sass` to be installed to the local machine to compile SCSS into CSS if you want to use the Custom Theme features. \n\n- Node: `npm install sass -g`\n- Ruby: `gem install sass`\n\n# Running Statping as a Service\nTo ensure Statping is always running, it can be installed to run as a service on a Windows machine. The easiest way to do that is by using NSSM, the [Non-Sucking Service Manager](https://nssm.cc/download). Download and unzip the compressed file to a location on your machine running Statping to get started:\n1. Open an administrative command prompt.\n2. Change to the folder that contains the 64 bit version of NSSM.\n3. Type \"nssm install Statping\" and press enter.\n4. For the properties, use the following as an example:\n Path: C:\\Program Files\\Statping\\statping.exe\n Startup directory: C:\\Program Files\\Statping\n5. Click \"Install\".\n6. Launch the windows services manager.\n7. Run Statping.\n\n## Known Issues with Windows\nUnfortunately, Statping only works on Windows 64-bit processors. If you have more than 4gb of ram, there's a good chance you already have a 64-bit processor. Download the [Latest Releases](https://github.com/statping/statping/releases/latest) of Statping, extract the ZIP file, then double click on the `statping.exe` file. You can use a SQLite database for a quick setup, or connect to a local/remote Postgres or MySQL database server.\n\nAWS EC2
\nRunning Statping on the smallest EC2 server is very quick using the AWS AMI Image. The AWS AMI Image will automatically start a Statping Docker container that will automatically update to the latest version. Once the EC2 is booted, you can go to the Public DNS domain to view the Statping installation page. The Statping root folder is located at: `/statping` on the server.\n\n# AMI Image\nChoose the correct AMI Image ID based on your AWS region.\n- us-east-1 `ami-09ccd23d9c7afba61` (Virginia)\n- us-east-2 `ami-0c6c9b714a501cdb3` (Ohio)\n- us-west-1 `ami-02159cc1fc701a77e` (California)\n- us-west-2 `ami-007c6990949f5ccee` (Oregon)\n- eu-central-1 `ami-06e252d6d8b0c2f1f` (Frankfurt)\n\n# Upgrading Staping\nYou can upgrade the Statping executable by running the commands below on your EC2 instance.\n```\nVERSION=$(curl -s \"https://github.com/statping/statping/releases/latest\" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')\nwget https://github.com/statping/statping/releases/download/$VERSION/statping-linux-x64.tar.gz\ntar -xvzf statping-linux-x64.tar.gz\nchmod +x statping\nmv statping /usr/local/bin/statping\n```\nYou can test the version number by running `statping version`.\n\n# Instructions\n\n### 1. Create an EC2 instance from AMI Image\nGo to the main EC2 dashboard and click 'Launch Instance'. Then type `Statping` inside the search field for 'Community AMI'. Once you've found it in your region, click Select!\n\n
\n\n### 2. Get the Public DNS for EC2 Instance\nCopy the 'Public DNS' URL and paste it into your browser.\n\n
\n\n### 3. Setup Statping\nUse SQLite if you don't want to connect to a remote MySQL or Postgres database.\n\n
\n\n# EC2 Server Features\nRunning your Statping server on a small EC2 instance is perfect for most users. Below you'll find some commands to get up and running in seconds.\n- Super cheap on the t2.nano (~$4.60 monthly)\n- Small usage, 8gb of hard drive\n- Automatic SSL certificate if you require it\n- Automatic reboot when the server needs it\n- Automatic database cleanup, so you'll never be at 100% full.\n- Automatic docker containers/images removal\n\n## Create Security Groups\nUsing the AWS CLI you can copy and paste the commands below to auto create everything for you. The server opens port 80 and 443.\n```bash\naws ec2 create-security-group --group-name StatpingPublicHTTP --description \"Statping HTTP Server on port 80 and 443\"\n# will response back a Group ID. Copy ID and use it for --group-id below.\n```\n```bash\nGROUPS=sg-7e8b830f\naws ec2 authorize-security-group-ingress --group-id $GROUPS --protocol tcp --port 80 --cidr 0.0.0.0/0\naws ec2 authorize-security-group-ingress --group-id $GROUPS --protocol tcp --port 443 --cidr 0.0.0.0/0\n```\n## Create EC2 without SSL\nOnce your server has started, go to the EC2 Public DNS endpoint. You should be redirected to /setup to continue your installation process! The database information is already inputed for you.\n```bash\nGROUPS=sg-7e8b830f\nKEY=MYKEYHERE\nAMI_IMAGE=ami-7be8a103\n\naws ec2 run-instances \\\n --image-id $AMI_IMAGE \\\n --count 1 --instance-type t2.nano \\\n --key-name $KEY \\\n --security-group-ids $GROUPS\n```\n## Create EC2 with Automatic SSL Certification\nStart a Statping server with an SSL cert that will automatically regenerate when it's near expiration time. You'll need to point your domain's A record (IP address) or CNAME (public DNS endpoint) to use this feature.\n\n```bash\nwget https://raw.githubusercontent.com/hunterlong/statping/master/dev/ec2-ssl.sh\n```\n\n```bash\n# edit the contents inside of ec2-ssl.sh then continue\nLETSENCRYPT_HOST=\"status.MYDOMAIN.com\"\nLETSENCRYPT_EMAIL=\"noreply@MYEMAIL.com\"\n```\nEdit ec2-ssl.sh and insert your domain you want to use, then run command below. Use the Security Group ID that you used above for --security-group-ids\n```\nGROUPS=sg-7e8b830f\nAMI_IMAGE=ami-7be8a103\nKEY=MYKEYHERE\n\naws ec2 run-instances \\\n --user-data file://ec2-ssl.sh \\\n --image-id $AMI_IMAGE \\\n --count 1 --instance-type t2.nano \\\n --key-name $KEY \\\n --security-group-ids $GROUPS\n```\n\n### EC2 Server Specs\n- t2.nano ($4.60 monthly)\n- 8gb SSD Memory\n- 0.5gb RAM\n- Docker with Docker Compose installed\n- Running Statping, NGINX, and Postgres\n- boot scripts to automatically clean unused containers.\n\n\n\nDocker
\nStatping is easily ran on Docker with the light weight Alpine linux image. View on [Docker Hub](https://hub.docker.com/r/hunterlong/statping).\n\n[](https://microbadger.com/images/hunterlong/statping) [](https://hub.docker.com/r/hunterlong/statping/builds/)\n\n# Latest Docker Image\nThe `latest` Docker image uses Alpine Linux to keep it ultra small.\n```bash\ndocker run -d \\\n -p 8080:8080 \\\n --restart always \\\n hunterlong/statping\n```\n\n# Mounting Volume\nYou can mount a volume to the `/app` Statping directory. This folder will contain `logs`, `config.yml`, and static assets if you want to edit the SCSS/CSS. \n```bash\ndocker run -d \\\n -p 8080:8080 \\\n -v /mydir/statping:/app \\\n --restart always \\\n hunterlong/statping\n```\n\n# Attach a SSL Certificate\nWhen you mount `server.crt` and `server.key` to the `/app` directory, Statping will run a HTTPS server on port 443. Checkout the [SSL Wiki](https://github.com/statping/statping/wiki/SSL) documentation to see more information about this.\n```bash\ndocker run -d \\\n -p 443:443 \\\n -v /mydir/domain.crt:/app/server.crt \\\n -v /mydir/domain.key:/app/server.key \\\n -v /mydir:/app \\\n --restart always \\\n hunterlong/statping\n```\n\n# Development Docker Image\nIf you want to run Statping that was build from the source, use the `dev` Docker image.\n```bash\ndocker run -d -p 8080:8080 hunterlong/statping:dev\n```\n\n# Cypress Testing Docker Image\nThis Docker image will pull the latest version of Statping and test the web interface with [Cypress](https://www.cypress.io/).\n```bash\ndocker run -it -p 8080:8080 hunterlong/statping:cypress\n```\n\n#### Or use Docker Compose\nThis Docker Compose file inlcudes NGINX, Postgres, and Statping.\n\n### Docker Compose with NGINX and Postgres\nOnce you initiate the `docker-compose.yml` file below go to http://localhost and you'll be forwarded to the /setup page. \nDatabase Authentication\n- database: `postgres`\n- port: `5432`\n- username: `statup`\n- password: `password123`\n- database: `statup`\n\n```yaml\nversion: '2.3'\n\nservices:\n\n nginx:\n container_name: nginx\n image: jwilder/nginx-proxy\n ports:\n - 0.0.0.0:80:80\n - 0.0.0.0:443:443\n networks:\n - internet\n restart: always\n volumes:\n - /var/run/docker.sock:/tmp/docker.sock:ro\n - ./statup/nginx/certs:/etc/nginx/certs:ro\n - ./statup/nginx/vhost:/etc/nginx/vhost.d\n - ./statup/nginx/html:/usr/share/nginx/html:ro\n - ./statup/nginx/dhparam:/etc/nginx/dhparam\n environment:\n DEFAULT_HOST: localhost\n\n statup:\n container_name: statup\n image: hunterlong/statping:latest\n restart: always\n networks:\n - internet\n - database\n depends_on:\n - postgres\n volumes:\n - ./statup/app:/app\n environment:\n VIRTUAL_HOST: localhost\n VIRTUAL_PORT: 8080\n DB_CONN: postgres\n DB_HOST: postgres\n DB_USER: statup\n DB_PASS: password123\n DB_DATABASE: statup\n NAME: EC2 Example\n DESCRIPTION: This is a Statping Docker Compose instance\n\n postgres:\n container_name: postgres\n image: postgres:10\n restart: always\n networks:\n - database\n volumes:\n - ./statup/postgres:/var/lib/postgresql/data\n environment:\n POSTGRES_PASSWORD: password123\n POSTGRES_USER: statup\n POSTGRES_DB: statup\n\nnetworks:\n internet:\n driver: bridge\n database:\n driver: bridge\n```\nOr a simple wget...\n```bash\nwget https://raw.githubusercontent.com/hunterlong/statping/master/servers/docker-compose.yml\ndocker-compose up -d\n```\n\n### Docker Compose with Automatic SSL\nYou can automatically start a Statping server with automatic SSL encryption using this docker-compose file. First point your domain's DNS to the Statping server, and then run this docker-compose command with DOMAIN and EMAIL. Email is for letsencrypt services.\n```bash\nwget https://raw.githubusercontent.com/hunterlong/statping/master/servers/docker-compose-ssl.yml\n\nLETSENCRYPT_HOST=mydomain.com \\\n LETSENCRYPT_EMAIL=info@mydomain.com \\\n docker-compose -f docker-compose-ssl.yml up -d\n```\n\n#### Full docker-compose with Automatic SSL\n\n```yaml\nversion: '2.3'\n\nservices:\n\n nginx:\n container_name: nginx\n image: jwilder/nginx-proxy\n ports:\n - 0.0.0.0:80:80\n - 0.0.0.0:443:443\n labels:\n - \"com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy\"\n networks:\n - internet\n restart: always\n volumes:\n - /var/run/docker.sock:/tmp/docker.sock:ro\n - ./statup/nginx/certs:/etc/nginx/certs:ro\n - ./statup/nginx/vhost:/etc/nginx/vhost.d\n - ./statup/nginx/html:/usr/share/nginx/html:ro\n - ./statup/nginx/dhparam:/etc/nginx/dhparam\n environment:\n DEFAULT_HOST: ${LETSENCRYPT_HOST}\n\n letsencrypt:\n container_name: letsencrypt\n image: jrcs/letsencrypt-nginx-proxy-companion\n networks:\n - internet\n restart: always\n volumes:\n - /var/run/docker.sock:/var/run/docker.sock:ro\n - ./statup/nginx/certs:/etc/nginx/certs\n - ./statup/nginx/vhost:/etc/nginx/vhost.d\n - ./statup/nginx/html:/usr/share/nginx/html\n - ./statup/nginx/dhparam:/etc/nginx/dhparam\n\n statup:\n container_name: statup\n image: hunterlong/statping:latest\n restart: always\n networks:\n - internet\n - database\n depends_on:\n - postgres\n volumes:\n - ./statup/app:/app\n environment:\n VIRTUAL_HOST: ${LETSENCRYPT_HOST}\n VIRTUAL_PORT: 8080\n LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}\n LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}\n DB_CONN: postgres\n DB_HOST: postgres\n DB_USER: statup\n DB_PASS: password123\n DB_DATABASE: statup\n NAME: SSL Example\n DESCRIPTION: This Status Status Page should be running ${LETSENCRYPT_HOST} with SSL.\n\n postgres:\n container_name: postgres\n image: postgres:10\n restart: always\n networks:\n - database\n volumes:\n - ./statup/postgres:/var/lib/postgresql/data\n environment:\n POSTGRES_PASSWORD: password123\n POSTGRES_USER: statup\n POSTGRES_DB: statup\n\nnetworks:\n internet:\n driver: bridge\n database:\n driver: bridge\n```\n\nMobile App
\nStatping has a free mobile app so you can monitor your websites and applications without the need of a computer. \n\n\n\n\n\n\n
\n
\n\n\nHeroku
\nYou can now instantly deploy your Statping instance on a free Heroku container. Simply click the deploy button below and get up in running within seconds. This Heroku deployment is based on the Statping Docker image so you will have all the great features including SASS and all the notifiers without any setup. \n\n[](https://heroku.com/deploy?template=https://github.com/statping/statping/tree/master)\n\nView the live Heroku Statping instance at: [https://statping.herokuapp.com](https://statping.herokuapp.com)\n\n# Database Configuration\nYou will need to deploy a Postgres database to your instance and insert some configuration variables. View the image below to see what environment variable you need to configure. If you insert `DB_CONN`, Statping will attempt to automatically connect to the database without the need for the `config.yml` file. \n\n\n\n\nAPI
\nStatping includes a RESTFUL API so you can view, update, and edit your services with easy to use routes. You can currently view, update and delete services, view, create, update users, and get detailed information about the Statping instance. To make life easy, try out a Postman or Swagger JSON file and use it on your Statping Server.\n\n\nPostman | Postman JSON Export | Swagger Export\n
\n\n## Authentication\nAuthentication uses the Statping API Secret to accept remote requests. You can find the API Secret in the Settings page of your Statping server. To send requests to your Statping API, include a Authorization Header when you send the request. The API will accept any one of the headers below.\n\n- HTTP Header: `Authorization: API SECRET HERE`\n- HTTP Header: `Authorization: Bearer API SECRET HERE`\n\n## Main Route `/api`\nThe main API route will show you all services and failures along with them.\n\n## Services\nThe services API endpoint will show you detailed information about services and will allow you to edit/delete services with POST/DELETE http methods.\n\n### Viewing All Services\n- Endpoint: `/api/services`\n- Method: `GET`\n- Response: Array of [Services](https://github.com/statping/statping/wiki/API#service-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\n### Viewing Service\n- Endpoint: `/api/services/{id}`\n- Method: `GET`\n- Response: [Service](https://github.com/statping/statping/wiki/API#service-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\n### Updating Service\n- Endpoint: `/api/services/{id}`\n- Method: `POST`\n- Response: [Service](https://github.com/statping/statping/wiki/API#service-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nPOST Data:\n```json\n{\n \"name\": \"Updated Service\",\n \"domain\": \"https://google.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 15,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 10,\n \"order_id\": 0\n}\n```\n\n### Create New Service\n- Endpoint: `/api/services`\n- Method: `POST`\n- Response: [Service](https://github.com/statping/statping/wiki/API#service-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nPOST Data:\n```json\n{\n \"name\": \"Create New Service\",\n \"domain\": \"https://www.coogger.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 15,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 10,\n \"order_id\": 0\n}\n```\n\n### Deleting Service\n- Endpoint: `/api/services/{id}`\n- Method: `DELETE`\n- Response: [Object Response](https://github.com/statping/statping/wiki/API#object-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nResponse:\n```json\n{\n \"status\": \"success\",\n \"id\": 4,\n \"type\": \"service\",\n \"method\": \"delete\"\n}\n```\n\n## Users\nThe users API endpoint will show you users that are registered inside your Statping instance.\n\n### View All Users\n- Endpoint: `/api/users`\n- Method: `GET`\n- Response: Array of [Users](https://github.com/statping/statping/wiki/API#user-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\n### Viewing User\n- Endpoint: `/api/users/{id}`\n- Method: `GET`\n- Response: [User](https://github.com/statping/statping/wiki/API#user-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\n### Creating New User\n- Endpoint: `/api/users`\n- Method: `POST`\n- Response: [User](https://github.com/statping/statping/wiki/API#user-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nPOST Data:\n```json\n{\n \"username\": \"newadmin\",\n \"email\": \"info@email.com\",\n \"password\": \"password123\",\n \"admin\": true\n}\n```\n\n### Updating User\n- Endpoint: `/api/users/{id}`\n- Method: `POST`\n- Response: [User](https://github.com/statping/statping/wiki/API#user-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nPOST Data:\n```json\n{\n \"username\": \"updatedadmin\",\n \"email\": \"info@email.com\",\n \"password\": \"password123\",\n \"admin\": true\n}\n```\n\n### Deleting User\n- Endpoint: `/api/services/{id}`\n- Method: `DELETE`\n- Response: [Object Response](https://github.com/statping/statping/wiki/API#object-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nResponse:\n```json\n{\n \"status\": \"success\",\n \"id\": 3,\n \"type\": \"user\",\n \"method\": \"delete\"\n}\n```\n\n# Service Response\n```json\n{\n \"id\": 8,\n \"name\": \"Test Service 0\",\n \"domain\": \"https://status.coinapp.io\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 1,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 30,\n \"order_id\": 0,\n \"created_at\": \"2018-09-12T09:07:03.045832088-07:00\",\n \"updated_at\": \"2018-09-12T09:07:03.046114305-07:00\",\n \"online\": false,\n \"latency\": 0.031411064,\n \"24_hours_online\": 0,\n \"avg_response\": \"\",\n \"status_code\": 502,\n \"last_online\": \"0001-01-01T00:00:00Z\",\n \"dns_lookup_time\": 0.001727175,\n \"failures\": [\n {\n \"id\": 5187,\n \"issue\": \"HTTP Status Code 502 did not match 200\",\n \"created_at\": \"2018-09-12T10:41:46.292277471-07:00\"\n },\n {\n \"id\": 5188,\n \"issue\": \"HTTP Status Code 502 did not match 200\",\n \"created_at\": \"2018-09-12T10:41:47.337659862-07:00\"\n }\n ]\n}\n```\n\n# User Response\n```json\n{\n \"id\": 1,\n \"username\": \"admin\",\n \"api_key\": \"02f324450a631980121e8fd6ea7dfe4a7c685a2f\",\n \"admin\": true,\n \"created_at\": \"2018-09-12T09:06:53.906398511-07:00\",\n \"updated_at\": \"2018-09-12T09:06:54.972440207-07:00\"\n}\n```\n\n# Object Response\n```json\n{\n \"type\": \"service\",\n \"id\": 19,\n \"method\": \"delete\",\n \"status\": \"success\"\n}\n```\n\n# Main API Response\n```json\n{\n \"name\": \"Awesome Status\",\n \"description\": \"An awesome status page by Statping\",\n \"footer\": \"This is my custom footer\",\n \"domain\": \"https://demo.statping.com\",\n \"version\": \"v0.56\",\n \"migration_id\": 1536768413,\n \"created_at\": \"2018-09-12T09:06:53.905374829-07:00\",\n \"updated_at\": \"2018-09-12T09:07:01.654201225-07:00\",\n \"database\": \"sqlite\",\n \"started_on\": \"2018-09-12T10:43:07.760729349-07:00\",\n \"services\": [\n {\n \"id\": 1,\n \"name\": \"Google\",\n \"domain\": \"https://google.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 10,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 10,\n \"order_id\": 0,\n \"created_at\": \"2018-09-12T09:06:54.97549122-07:00\",\n \"updated_at\": \"2018-09-12T09:06:54.975624103-07:00\",\n \"online\": true,\n \"latency\": 0.09080986,\n \"24_hours_online\": 0,\n \"avg_response\": \"\",\n \"status_code\": 200,\n \"last_online\": \"2018-09-12T10:44:07.931990439-07:00\",\n \"dns_lookup_time\": 0.005543935\n }\n ]\n}\n```\n\n\nMakefile
\nHere's a simple list of Makefile commands you can run using `make`. The [Makefile](https://github.com/statping/statping/blob/master/Makefile) may change often, so i'll try to keep this Wiki up-to-date.\n\n- Ubuntu `apt-get install build-essential`\n- MacOSX `sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer`\n- Windows [Install Guide for GNU make utility](http://gnuwin32.sourceforge.net/packages/make.htm)\n- CentOS/RedHat `yum groupinstall \"Development Tools\"`\n\n### Commands\n```bash\nmake build # build the binary\nmake install\nmake run\nmake test\nmake coverage\nmake docs\n# Building Statping\nmake build-all\nmake build-alpine\nmake docker\nmake docker-run\nmake docker-dev\nmake docker-run-dev\nmake databases\nmake dev-deps\nmake clean\nmake compress\nmake cypress-install\nmake cypress-test\n```\n\nNotifiers
\n\n
\n
\n\nStatping includes multiple Notifiers to alert you when your services are offline. You can also create your own notifier and send a Push Request to this repo! Creating a custom notifier is pretty easy as long as you follow the requirements. A notifier will automatically be installed into the users Statping database, and form values will save without any hassles. 💃\n\n\nExample Code | Events | View Notifiers
\n
\n
\n\n## Notifier Requirements\n- Must have a unique `METHOD` name\n- Struct must have `*notifier.Notification` pointer in it. \n- Must create and add your notifier variable in `init()`\n- Should have a form for user to input their variables/keys. `Form: []notifier.NotificationForm`\n\n## Notifier Interface (required)\nStatping has the `Notifier` interface which you'll need to include in your notifier. Statping includes many other events/triggers for your notifier, checkout Notifier Events to see all of them.\n```go\n// Notifier interface is required to create a new Notifier\ntype Notifier interface {\n\tOnSave() error // OnSave is triggered when the notifier is saved\n\tSend(interface{}) error // OnSave is triggered when the notifier is saved\n\tSelect() *Notification // Select returns the *Notification for a notifier\n}\n```\n\n### Basic Interface (required)\nInclude `OnSuccess` and `OnFailure` to receive events when a service is online or offline.\n```go\n// BasicEvents includes the most minimal events, failing and successful service triggers\ntype BasicEvents interface {\n\t// OnSuccess is triggered when a service is successful\n\tOnSuccess(*services.Service)\n\t// OnFailure is triggered when a service is failing\n\tOnFailure(*services.Service, *types.Failure)\n}\n```\n\n### Test Interface\nThe OnTest method will give the front end user the ability to test your notifier without saving, the OnTest method for your notifier run the functionality to test the user's submitted parameters and respond an error if notifier is not correctly setup.\n```go\n// Tester interface will include a function to Test users settings before saving\ntype Tester interface {\n\tOnTest() error\n}\n```\nIf your notifier includes this interface, the Test button will appear.\n\n## Notifier Struct\n```go\nvar example = &Example{¬ifier.Notification{\n\tMethod: \"example\", // unique method name\n\tHost: \"http://exmaplehost.com\", // default 'host' field\n\tForm: []notifier.NotificationForm{{\n\t\tType: \"text\", // text, password, number, or email\n\t\tTitle: \"Host\", // The title of value in form\n\t\tPlaceholder: \"Insert your Host here.\", // Optional placeholder in input\n\t\tDbField: \"host\", // An accepted DbField value (read below)\n\t}},\n}\n```\n\n## Notifier Form\nInclude a form with your notifier so other users can save API keys, username, passwords, and other values. \n```go\n// NotificationForm contains the HTML fields for each variable/input you want the notifier to accept.\ntype NotificationForm struct {\n\tType string `json:\"type\"` // the html input type (text, password, email)\n\tTitle string `json:\"title\"` // include a title for ease of use\n\tPlaceholder string `json:\"placeholder\"` // add a placeholder for the input\n\tDbField string `json:\"field\"` // true variable key for input\n\tSmallText string `json:\"small_text\"` // insert small text under a html input\n\tRequired bool `json:\"required\"` // require this input on the html form\n\tIsHidden bool `json:\"hidden\"` // hide this form element from end user\n\tIsList bool `json:\"list\"` // make this form element a comma separated list\n\tIsSwitch bool `json:\"switch\"` // make the notifier a boolean true/false switch\n}\n```\n\n### Example Notifier Form\nThis is the Slack Notifier `Form` fields.\n```go\nForm: []notifier.NotificationForm{{\n\t\tType: \"text\",\n\t\tTitle: \"Incoming webhooker Url\",\n\t\tPlaceholder: \"Insert your slack webhook URL here.\",\n\t\tSmallText: \"Incoming webhooker URL from slack Apps\",\n\t\tDbField: \"Host\",\n\t\tRequired: true,\n\t}}\n}\n```\n\n### Accepted DbField Values\nThe `notifier.NotificationForm` has a field called `DbField` which is the column to save the value into the database. Below are the acceptable DbField string names to include in your form. \n- `host` used for a URL or API endpoint\n- `username` used for a username\n- `password` used for a password\n- `port` used for a integer port number\n- `api_key` used for some kind of API key\n- `api_secret` used for some API secret\n- `var1` used for any type of string\n- `var2` used for any type of string (extra)\n\n### Form Elements\nYou can completely custom your notifications to include a detailed form. \n- `Type` is a HTML input type for your field\n- `Title` give your input element a title\n- `Placeholder` optional field if you want a placeholder in input\n- `DbField` required field to save variable into database (read above)\n- `Placeholder` optional field for inserting small hint under the input\n\n# Adding Notifiers\nTo add a notifier to the Statping application, simply append your Notifier in the `AttachNotifiers()` function inside of [core/core.go](https://github.com/statping/statping/blob/master/core/core.go).\n\n```go\n// AttachNotifiers will attach all the notifier's into the system\nfunc AttachNotifiers() error {\n\treturn notifier.AddNotifiers(\n\t\tnotifiers.Command,\n\t\tnotifiers.Discorder,\n\t\tnotifiers.Emailer,\n\t\tnotifiers.LineNotify,\n\t\tnotifiers.Mobile,\n\t\tnotifiers.Slacker,\n\t\tnotifiers.Telegram,\n\t\tnotifiers.Twilio,\n\t\tnotifiers.Webhook,\n\t)\n}\n```\n###### [AttachNotifiers](https://github.com/statping/statping/blob/master/core/core.go#L183)\n\nNotifier Events
\nEvents are handled by added interfaces for the elements you want to monitor.\n\n## Required Notifier Interface\n```go\n// Notifier interface is required to create a new Notifier\ntype Notifier interface {\n\t// Run will trigger inside of the notifier when enabled\n\tRun() error\n\t// OnSave is triggered when the notifier is saved\n\tOnSave() error\n\t// Test will run a function inside the notifier to Test if it works\n\tTest() error\n\t// Select returns the *Notification for a notifier\n\tSelect() *Notification\n}\n```\n\n## Basic Success/Failure Interface\n```go\n// BasicEvents includes the most minimal events, failing and successful service triggers\ntype BasicEvents interface {\n\t// OnSuccess is triggered when a service is successful\n\tOnSuccess(*services.Service)\n\t// OnFailure is triggered when a service is failing\n\tOnFailure(*services.Service, *types.Failure)\n}\n```\n\n\n## Service Events\n```go\n// ServiceEvents are events for Services\ntype ServiceEvents interface {\n\tOnNewService(*services.Service)\n\tOnUpdatedService(*services.Service)\n\tOnDeletedService(*services.Service)\n}\n```\n\n## User Events\n```go\n// UserEvents are events for Users\ntype UserEvents interface {\n\tOnNewUser(*types.User)\n\tOnUpdatedUser(*types.User)\n\tOnDeletedUser(*types.User)\n}\n```\n\n## Core Events\n```go\n// CoreEvents are events for the main Core app\ntype CoreEvents interface {\n\tOnUpdatedCore(*types.Core)\n}\n```\n\n## Notifier Events\n```go\n// NotifierEvents are events for other Notifiers\ntype NotifierEvents interface {\n\tOnNewNotifier(*Notification)\n\tOnUpdatedNotifier(*Notification)\n}\n```\n\nNotifier Example
\nBelow is a full example of a Statping notifier which will give you a good example of how to create your own. Insert your new notifier inside the `/notifiers` folder once your ready!\n\n```go\npackage notifiers\n\nimport (\n\t\"errors\"\n\t\"fmt\"\n\t\"github.com/statping/statping/types\"\n \"github.com/statping/statping/core/notifier\"\n\t\"time\"\n)\n\ntype Example struct {\n\t*notifier.Notification\n}\n\nvar example = &Example{¬ifier.Notification{\n\tMethod: METHOD,\n\tTitle: \"Example\",\n\tDescription: \"Example Notifier\",\n\tAuthor: \"Hunter Long\",\n\tAuthorUrl: \"https://github.com/hunterlong\",\n\tDelay: time.Duration(5 * time.Second),\n\tForm: []notifier.NotificationForm{{\n\t\tType: \"text\",\n\t\tTitle: \"Host\",\n\t\tPlaceholder: \"Insert your Host here.\",\n\t\tDbField: \"host\",\n\t\tSmallText: \"this is where you would put the host\",\n\t}, {\n\t\tType: \"text\",\n\t\tTitle: \"Username\",\n\t\tPlaceholder: \"Insert your Username here.\",\n\t\tDbField: \"username\",\n\t}, {\n\t\tType: \"password\",\n\t\tTitle: \"Password\",\n\t\tPlaceholder: \"Insert your Password here.\",\n\t\tDbField: \"password\",\n\t}, {\n\t\tType: \"number\",\n\t\tTitle: \"Port\",\n\t\tPlaceholder: \"Insert your Port here.\",\n\t\tDbField: \"port\",\n\t}, {\n\t\tType: \"text\",\n\t\tTitle: \"API Key\",\n\t\tPlaceholder: \"Insert your API Key here\",\n\t\tDbField: \"api_key\",\n\t}, {\n\t\tType: \"text\",\n\t\tTitle: \"API Secret\",\n\t\tPlaceholder: \"Insert your API Secret here\",\n\t\tDbField: \"api_secret\",\n\t}, {\n\t\tType: \"text\",\n\t\tTitle: \"Var 1\",\n\t\tPlaceholder: \"Insert your Var1 here\",\n\t\tDbField: \"var1\",\n\t}, {\n\t\tType: \"text\",\n\t\tTitle: \"Var2\",\n\t\tPlaceholder: \"Var2 goes here\",\n\t\tDbField: \"var2\",\n\t}},\n}}\n\n// REQUIRED init() will install/load the notifier\nfunc init() {\n\tnotifier.AddNotifier(example)\n}\n\n// REQUIRED - Send is where you would put the action's of your notifier\nfunc (n *Example) Send(msg interface{}) error {\n\tmessage := msg.(string)\n\tfmt.Printf(\"i received this string: %v\\n\", message)\n\treturn nil\n}\n\n// REQUIRED\nfunc (n *Example) Select() *notifier.Notification {\n\treturn n.Notification\n}\n\n// REQUIRED\nfunc (n *Example) OnSave() error {\n\tmsg := fmt.Sprintf(\"received on save trigger\")\n\tn.AddQueue(msg)\n\treturn nil\n}\n\n// REQUIRED\nfunc (n *Example) Test() error {\n\tmsg := fmt.Sprintf(\"received a test trigger\\n\")\n\tn.AddQueue(msg)\n\treturn nil\n}\n\n// REQUIRED - BASIC EVENT\nfunc (n *Example) OnSuccess(s *services.Service) {\n\tmsg := fmt.Sprintf(\"received a count trigger for service: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// REQUIRED - BASIC EVENT\nfunc (n *Example) OnFailure(s *services.Service, f *types.Failure) {\n\tmsg := fmt.Sprintf(\"received a failure trigger for service: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnNewService(s *services.Service) {\n\tmsg := fmt.Sprintf(\"received a new service trigger for service: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnUpdatedService(s *services.Service) {\n\tmsg := fmt.Sprintf(\"received a update service trigger for service: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnDeletedService(s *services.Service) {\n\tmsg := fmt.Sprintf(\"received a delete service trigger for service: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnNewUser(s *types.User) {\n\tmsg := fmt.Sprintf(\"received a new user trigger for user: %v\\n\", s.Username)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnUpdatedUser(s *types.User) {\n\tmsg := fmt.Sprintf(\"received a updated user trigger for user: %v\\n\", s.Username)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnDeletedUser(s *types.User) {\n\tmsg := fmt.Sprintf(\"received a deleted user trigger for user: %v\\n\", s.Username)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnUpdatedCore(s *types.Core) {\n\tmsg := fmt.Sprintf(\"received a updated core trigger for core: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnNewNotifier(s *Notification) {\n\tmsg := fmt.Sprintf(\"received a new notifier trigger for notifier: %v\\n\", s.Method)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnUpdatedNotifier(s *Notification) {\n\tmsg := fmt.Sprintf(\"received a update notifier trigger for notifier: %v\\n\", s.Method)\n\tn.AddQueue(msg)\n}\n```\n\n\nPrometheus Exporter
\nStatping includes a 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.\n\n# Grafana Dashboard\nStatping has a [Grafana Dashboard](https://grafana.com/dashboards/6950) that you can quickly implement if you've added your Statping service to Prometheus. Import Dashboard ID: `6950` into your Grafana dashboard and watch the metrics come in!\n\n
\n\n## Basic Prometheus Exporter\nIf you have Statping and the Prometheus server in the same Docker network, you can use the yaml config below.\n```yaml\nscrape_configs:\n - job_name: 'statping'\n scrape_interval: 30s\n bearer_token: 'SECRET API KEY HERE'\n static_configs:\n - targets: ['statping:8080']\n```\n\n## Remote URL Prometheus Exporter\nThis exporter yaml below has `scheme: https`, which you can remove if you arn't using HTTPS.\n```yaml\nscrape_configs:\n - job_name: 'statping'\n scheme: https\n scrape_interval: 30s\n bearer_token: 'SECRET API KEY HERE'\n static_configs:\n - targets: ['status.mydomain.com']\n```\n\n### `/metrics` Output\n```\nstatping_total_failures 206\nstatping_total_services 4\nstatping_service_failures{id=\"1\" name=\"Google\"} 0\nstatping_service_latency{id=\"1\" name=\"Google\"} 12\nstatping_service_online{id=\"1\" name=\"Google\"} 1\nstatping_service_status_code{id=\"1\" name=\"Google\"} 200\nstatping_service_response_length{id=\"1\" name=\"Google\"} 10777\nstatping_service_failures{id=\"2\" name=\"Statping.com\"} 0\nstatping_service_latency{id=\"2\" name=\"Statping.com\"} 3\nstatping_service_online{id=\"2\" name=\"Statping.com\"} 1\nstatping_service_status_code{id=\"2\" name=\"Statping.com\"} 200\nstatping_service_response_length{id=\"2\" name=\"Statping.com\"} 2\n```\n\nSSL
\nYou can run Statping with a valid certificate by including 2 files in the root directory. Although, I personally recommend using NGINX or Apache to serve the SSL and then have the webserver direct traffic to the Statping instance. This guide will show you how to implement SSL onto your Statping server with multiple options.\n\n## SSL Certificate with Statping\nTo run the Statping HTTP server in SSL mode, you must include 2 files in the root directory of your Statping application. The 2 files you must include are:\n- `server.crt` SSL Certificate File\n- `server.key` SSL Certificate Key File\n\nThe filenames and extensions must match the exact naming above. If these 2 files are found, Statping will automatically start the HTTP server in SSL mode using your certificates. You can also generate your own SSL certificates, but you will receive a \"ERR_CERT_AUTHORITY_INVALID\" error. To generate your own, follow the commands below:\n\n```shell\nopenssl req -new -sha256 -key server.key -out server.csr\nopenssl x509 -req -sha256 -in server.csr -signkey server.key -out server.crt -days 3650\n```\nThis will generate a self signed certificate that you can use for your Statup instance. I recommend using a web server to do SSL termination for your server though.\n\n## Choose a Web Server or Environment\n\n**Choose the environment running the Statping instance.**\n- [Docker](#docker)\n- [NGINX](#nginx)\n- [Apache](#apache)\n\n## Docker\nDocker might be the easiest way to get up and running with a SSL certificate. Below is a `docker-compose.yml` file that will run NGINX, LetEncrypt, and Statping.\n\n1. Point your domain or subdomain to the IP address of the Docker server. This would be done on CloudFlare, Route53, or some other DNS provider.\n\n2. Replace the `docker-compose.yml` contents:\n- `MY.DOMAIN.COM` with the domain you want to use\n- `MY@EMAIL.COM` with your email address\n\n3. Run the docker container by running command `docker-compose up -d`. Give a little bit of time for LetEncrypt to automatically generate your SSL certificate.\n\n###### `docker-compose.yml`\n```yaml\nversion: '2.3'\nservices:\n nginx:\n container_name: nginx\n image: jwilder/nginx-proxy\n ports:\n - 0.0.0.0:80:80\n - 0.0.0.0:443:443\n labels:\n - \"com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy\"\n networks:\n - internet\n restart: always\n volumes:\n - /var/run/docker.sock:/tmp/docker.sock:ro\n - ./statping/nginx/certs:/etc/nginx/certs:ro\n - ./statping/nginx/vhost:/etc/nginx/vhost.d\n - ./statping/nginx/html:/usr/share/nginx/html:ro\n - ./statping/nginx/dhparam:/etc/nginx/dhparam\n environment:\n DEFAULT_HOST: MY.DOMAIN.COM\n\n letsencrypt:\n container_name: letsencrypt\n image: jrcs/letsencrypt-nginx-proxy-companion\n networks:\n - internet\n restart: always\n volumes:\n - /var/run/docker.sock:/var/run/docker.sock:ro\n - ./statping/nginx/certs:/etc/nginx/certs\n - ./statping/nginx/vhost:/etc/nginx/vhost.d\n - ./statping/nginx/html:/usr/share/nginx/html\n - ./statping/nginx/dhparam:/etc/nginx/dhparam\n\n statping:\n container_name: statping\n image: hunterlong/statping:latest\n restart: always\n networks:\n - internet\n depends_on:\n - nginx\n volumes:\n - ./statping/app:/app\n environment:\n VIRTUAL_HOST: MY.DOMAIN.COM\n VIRTUAL_PORT: 8080\n LETSENCRYPT_HOST: MY.DOMAIN.COM\n LETSENCRYPT_EMAIL: MY@EMAIL.COM\n\nnetworks:\n internet:\n driver: bridge\n```\n\n## NGINX\nIf you already have a NGINX web server running, you just have to add a proxy pass and your SSL certs to the nginx config or as a vhost. By default Statping runs on port 8080, you can change this port by starting server with `statping -ip 127.0.0.1 -port 9595`.\n\n- Replace `/my/absolute/directory/for/cert/server.crt` with SSL certificate file.\n- Replace `/my/absolute/directory/for/key/server.key` with SSL key file.\n- Run `service nginx restart` and try out https on your domain.\n\n##### Tutorials\n- [NGINX Guide](https://docs.nginx.com/nginx/admin-guide/security-controls/terminating-ssl-http/)\n- [How To Set Up Nginx Load Balancing with SSL Termination](https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-load-balancing-with-ssl-termination)\n\n###### `/etc/nginx/nginx.conf`\n```\n#user nobody;\nworker_processes 1;\nevents {\n worker_connections 1024;\n}\nhttp {\n include mime.types;\n default_type application/octet-stream;\n send_timeout 1800;\n sendfile on;\n keepalive_timeout 6500;\n server {\n listen 80;\n server_name localhost;\n location / {\n proxy_pass http://localhost:8080;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Client-Verify SUCCESS;\n proxy_set_header X-Client-DN $ssl_client_s_dn;\n proxy_set_header X-SSL-Subject $ssl_client_s_dn;\n proxy_set_header X-SSL-Issuer $ssl_client_i_dn;\n proxy_read_timeout 1800;\n proxy_connect_timeout 1800;\n }\n }\n # HTTPS server\n \n server {\n listen 443;\n server_name localhost;\n \n ssl on;\n ssl_certificate /my/absolute/directory/for/cert/server.crt;\n ssl_certificate_key /my/absolute/directory/for/key/server.key;\n ssl_session_timeout 5m;\n \n ssl_protocols SSLv2 SSLv3 TLSv1;\n ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;\n ssl_prefer_server_ciphers on;\n \n location / {\n proxy_pass http://localhost:8080;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Client-Verify SUCCESS;\n proxy_set_header X-Client-DN $ssl_client_s_dn;\n proxy_set_header X-SSL-Subject $ssl_client_s_dn;\n proxy_set_header X-SSL-Issuer $ssl_client_i_dn;\n proxy_read_timeout 1800;\n proxy_connect_timeout 1800;\n }\n }\n}\n```\n\n## Apache\n\nConfig with .env File
\nIt may be useful to load your environment using a `.env` file in the root directory of your Statping server. The .env file will be automatically loaded on startup and will overwrite all values you have in config.yml.\n\nIf you have the `DB_CONN` environment variable set Statping will bypass all values in config.yml and will require you to have the other DB_* variables in place. You can pass in these environment variables without requiring a .env file.\n\n## `.env` File\n```bash\nDB_CONN=postgres\nDB_HOST=0.0.0.0\nDB_PORT=5432\nDB_USER=root\nDB_PASS=password123\nDB_DATABASE=root\n\nNAME=Demo\nDESCRIPTION=This is an awesome page\nDOMAIN=https://domain.com\nADMIN_USER=admin\nADMIN_PASSWORD=admin\nADMIN_EMAIL=info@admin.com\nUSE_CDN=true\nPOSTGRES_SSLMODE=false # enable ssl_mode for postgres (To enable use require)\nDISABLE_LOGS=false # disable logs from appearing and writing to disk\n\nIS_DOCKER=false\nIS_AWS=false\nSASS=/usr/local/bin/sass\nCMD_FILE=/bin/bash\n```\nThis .env file will include additional variables in the future, subscribe to this repo to keep up-to-date with changes and updates. \n\nStatic Export
\nIf you want to use Statping as a CLI application without running a server, you can export your status page to a static HTML.\nThis export tool is very useful for people who want to export their HTML and upload/commit it to Github Pages or an FTP server.\n```dash\nstatup export\n```\n###### Creates `index.html` in the current directory with CDN asset URL's. 💃 \n\nStatping Plugins
\nSince Statping is built in Go Language we can use the [Go Plugin](https://golang.org/pkg/plugin/) feature to create dynamic plugins that run on load. Statping has an event anytime anything happens, you can create your own plugins and do any type of function. To implement your own ideas into Statping, use the plugin using the [statup/plugin](https://github.com/statping/statping/blob/master/plugin/main.go) package.\n```\ngo get github.com/statping/statping/plugin\n```\n\n## Example Plugin\nStart off with the [Example Statping Plugin](https://github.com/statping/statping_plugin) that includes all the interfaces and some custom options for you to expand on. You can include any type of function in your own plugin!\n\n\n
\n
\n\n## Building Plugins\nPlugins don't need a push request and they can be private! You'll need to compile your plugin to the Golang `.so` binary format. Once you've built your plugin, insert it into the `plugins` folder in your Statping directory and reboot the application. Clone the [Example Statping Plugin](https://github.com/statping/statping_plugin) repo and try to build it yourself!\n\n#### Build Requirements\n- You must have `main.go`\n- You must create the Plugin variable on `init()`\n\n```bash\ngit clone https://github.com/statping/statping_plugin\ncd statup-plugin\ngo build -buildmode=plugin -o example.so\n```\n###### Insert `example.so` into the `plugins` directory and reload Statping\n\n## Testing Statping Plugins\nStatping includes a couple tools to help you on your Plugin journey, you can use `statup test plugins` command to test all plugins in your `/plugins` folder. This test will attempt to parse your plugin details, and then it will send events for your plugin to be fired.\n```\nstatup test plugins\n```\n\n
\n
\n\nYour plugin should be able to parse and receive events before distributing it. The test tools creates a temporary database (SQLite) that your plugin can interact with. Statping uses [upper.io/db.v3](https://upper.io/db.v3) for database interactions. The database is passed to your plugin `OnLoad(db sqlbuilder.Database)`, so you can use the `db` variable passed here.\n\n## Statping Plugin Interface\nPlease remember Golang plugin's are very new and Statping plugin package may change and 'could' brake your plugin. Checkout the [statup/plugin package](https://github.com/statping/statping/blob/master/plugin/main.go) to see the most current interfaces.\n```go\ntype PluginActions interface {\n\tGetInfo() Info\n\tGetForm() string\n\tSetInfo(map[string]interface{}) Info\n\tRoutes() []Routing\n\tOnSave(map[string]interface{})\n\tOnFailure(map[string]interface{})\n\tOnSuccess(map[string]interface{})\n\tOnSettingsSaved(map[string]interface{})\n\tOnNewUser(map[string]interface{})\n\tOnNewService(map[string]interface{})\n\tOnUpdatedService(map[string]interface{})\n\tOnDeletedService(map[string]interface{})\n\tOnInstall(map[string]interface{})\n\tOnUninstall(map[string]interface{})\n\tOnBeforeRequest(map[string]interface{})\n\tOnAfterRequest(map[string]interface{})\n\tOnShutdown()\n\tOnLoad(sqlbuilder.Database)\n}\n```\n\n## Event Parameters\nAll event interfaces for the Statping Plugin will return a `map[string]interface{}` type, this is because the plugin package will most likely update and change in the future, but using this type will allow your plugin to continue even after updates.\n\n## Example of an Event\nKnowing what happens during an event is important for your plugin. For example, lets have an event that echo something when a service has a Failure status being issued. Checkout some example below to see how this golang plugin action works. \n\n```go\nfunc (p pkg) OnSuccess(data map[string]interface{}) {\n fmt.Println(\"Statping Example Plugin received a successful service hit! \")\n fmt.Println(\"Name: \", data[\"Name\"])\n fmt.Println(\"Domain: \", data[\"Domain\"])\n fmt.Println(\"Method: \", data[\"Method\"])\n fmt.Println(\"Latency: \", data[\"Latency\"])\n}\n```\n###### OnSuccess is fired every time a service has check it be online\n\n```go\nfunc OnFailure(service map[string]interface{}) {\n fmt.Println(\"oh no! an event is failing right now! do something!\")\n fmt.Println(service)\n}\n```\n###### OnFailure is fired every time a service is failing\n\n```go\nfunc (p pkg) OnLoad(db sqlbuilder.Database) {\n fmt.Println(\"=============================================================\")\n fmt.Printf(\" Statping Example Plugin Loaded using %v database\\n\", db.Name())\n fmt.Println(\"=============================================================\")\n}\n```\n###### OnLoad is fired after plugin is loaded into the environment\n\n\n## Interacting with Database\nThe Example Statping Plugin includes a variable `Database` that will allow you to interact with the Statping database. Checkout [database.go](https://github.com/statping/statping_plugin/blob/master/database.go) to see a full example of Create, Read, Update and then Deleting a custom Communication entry into the database.\n```go\n// Insert a new communication into database\n// once inserted, return the Communication\nfunc (c *Communication) Create() *Communication {\n\tuuid, err := CommunicationTable().Insert(c)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tc.Id = uuid.(int64)\n\treturn c\n}\n```\n\n## Custom HTTP Routes\nPlugin's can include their own HTTP route to accept GET/POST requests. Route are loaded after Statping loads all of it's Routes. Checkout [routes.go](https://github.com/statping/statping_plugin/blob/master/routes.go) on the example plugin to see a full example of how to use it.\n```go\n// You must have a Routes() method in your plugin\nfunc (p *pkg) Routes() []plugin.Routing {\n\treturn []plugin.Routing{{\n\t\tURL: \"hello\",\n\t\tMethod: \"GET\",\n\t\tHandler: CustomInfoHandler,\n\t}}\n}\n\n// This is the HTTP handler for the '/hello' URL created above\nfunc CustomInfoHandler(w http.ResponseWriter, r *http.Request) {\n\tw.WriteHeader(http.StatusOK)\n\tfmt.Fprintln(w, \"Oh Wow!!! This is cool...\")\n}\n```\n\n\n## Plugin To-Do List\n- [ ] Ability to includes assets like jpg, json, etc\n\nStatuper
\nStatping includes a simple to use installation shell script that will help you install locally, Docker, and even onto a AWS EC2 instance.\n\n\n
\n
\n\n## Installation\n```bash\ncurl -O https://assets.statup.io/statuper && chmod +x statuper\n```\n\n## Usage\n- `statuper`\n\nBuild and Test
\nBuilding from the Go Language source code is pretty easy if you already have Go installed. Clone this repo and `cd` into it. \n\n### Git n' Go Get\n```bash\ngit clone https://github.com/statping/statping.git\ncd statup\ngo get -v\n```\n\n### Install go.rice\nStatping uses go.rice to compile HTML, JS, and CSS files into it's single binary output.\n```\ngo get github.com/GeertJohan/go.rice\ngo get github.com/GeertJohan/go.rice/rice\n```\n\n### Build Statping Binary\nStatping uses go.rice to compile HTML, JS, and CSS files into it's single binary output.\n```\nrice embed-go\ngo build -o statup .\n./statup version\n```\n\n### Test Coverage\nYou can also test Statio on your localhost, but it does require a MySQL, and Postgres server to be accessible since testing does create/drop tables for multiple databases. \n```\ngo test -v\n```\n\nContributing
\nHave a feature you want to implement into Statping!? Awesome! Follow this guide to see how you can test, compile and build Statping for production use. I recommend you use `make` with this process, it will save you time and it will auto include many customized parameters to get everything working correctly.\n\n# Dependencies\nStatping has a couple of required dependencies when testing and compiling the binary. The [Makefile](https://github.com/statping/statping/blob/master/Makefile) will make these tasks a lot easier. Take a look at the Makefile to see what commands are ran. Run the command below to get setup right away.\n```bash\nmake dev-deps\n```\nList of requirements for compiling assets, building binary, and testing.\n- [Go Language](https://golang.org/) (currently `1.10.3`)\n- [Docker](https://docs.docker.com/)\n- [SASS](https://sass-lang.com/install)\n- [Cypress](https://www.cypress.io/) (only used for UI testing, `make cypress-install`)\n\n# Compiling Assets\nThis Golang project uses [rice](https://github.com/GeertJohan/go.rice) to compile static assets into a single file. The file `source/rice-box.go` is never committed to the Github repo, it is automatically created on build. Statping also requires `sass` to be installed on your local OS. To compile all the static assets run the command below:\n\n```bash\nmake compile\n```\nAfter this is complete, you'll notice the `source/rice-box.go` file has been generated. You can now continue to build, and test.\n\n# Testing\nStatping includes multiple ways to Test the application, you can run the `make` command, or the normal `go test` command. To see the full experience of your updates, you can even run Cypress tests which is in the `.dev/test` folder.\n\nStatping will run all tests in `cmd` folder on MySQL, Postgres, and SQLite databases. You can run `make databases` to automatically create MySQL and Postgres with Docker.\n\n###### Go Unit Testing:\n```bash\nmake test\n```\n\n###### Cypress UI Testing:\n```bash\nmake cypress-test\n```\n\n###### Test Everything:\n```bash\nmake test-all\n```\n\n# Build\nStatping will build on all operating systems except Windows 32-bit. I personally use [xgo](https://github.com/karalabe/xgo) to cross-compile on multiple systems using Docker. Follow the commands below to build on your local system.\n\n###### Build for local operating system:\n```bash\nmake build\n```\n\n# Compile for Production\nOnce you've tested and built locally, you can compile Statping for all available operating systems using the command below. This command will require you to have Docker.\n\n```bash\nmake build-all\n```\n\n# What Now\nEverything tested, compiled and worked out!? Awesome! 💃 You can now commit your changes, and submit a Pull Request with the features/bugs you added or removed.\n\n\n\n\n\nPGP Signature
\nYou can check if the Statping binary you downloaded is authentic by running a few commands.\n\n### Steps to Authenticate\n1. Download the Statping `tar.gz` file from [Latest Releases](https://github.com/statping/statping/releases/latest) and extract the `statping` binary and the `statup.asc` file.\n2. Run command: `gpg --verify statping.asc`\n3. You should see `Good signature from \"Hunter Long \" [ultimate]`.\n\n# Statping Public Key\n- [https://statping.com/statping.gpg](https://statping.com/statping.gpg)\n\nYou can also download the key with the command below:\n```\nwget https://statping.com/statping.gpg\n```\n\n###### `statping.gpg`\n```\n-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBFwGUYIBEADNsDY4aUOx8EoZuTRFPtjuadJzFRyKtHhw/tLlAnoFACanZPIT\nNZoRYvRR5v6lMDXdxsteDbJEOhZ1WDiKIr4OyMahPsyyH6ULzSBKgePUswa0sDef\nUnXYzPFQCzqQyQQFbp9AYfDP7dW6dTL9I6qU2NqlJvjxJiiZTAq87SmsLqHiASnI\n+ottnQuu6vJQBJz2PFIuaS1c3js/+HBbth9GK5B9YN1BIIyZoFmWKVU9HnJf+aM3\nUs6OLjjwYwWzQH38ZV84IjVXyiP9PQVhlCXeHK7XdhPZvnSP1m5Wszj/jowwY6Mz\nLgLotfL540X7yOJ7hJTFYLFBOtJdJr/3Ov8SH4HXdPFPVG+UqxsmtmPqUQ9iAxAE\njRFfkAxBvH5Szf2WZdaLnlrrOcOKJIIjZgHqalquBTAhlh5ul0lUVSSPxetwIBlW\n60L41k94NJFGDt8xOJ+122mLcywmQ1CzhDfeIKlxl6JDiVHjoRqlQQrqIoNZMV85\nrzGfrmbuwv1MXGBJoiNy3330ujOBmhQ9dQVwKpxhBKdjnAgIGM9szbUYxIkGgM1O\nU4b1WF3AF/9JOpKJ0LewslpM3BFFYnemGsHXAv3TBPqKidNdwMAiBOtNykGoXF6i\n0D6jOW/IB1da0gUA+kr5JdAOwIG7JXKhur2MO7Ncid59DL2N8RePRWj+jwARAQAB\ntB9IdW50ZXIgTG9uZyA8aW5mb0BzdGF0cGluZy5jb20+iQJOBBMBCAA4FiEEt21h\n+qbbdZRm6D2ZZLnGquLVUngFAlwGUYICGwMFCwkIBwIGFQoJCAsCBBYCAwECHgEC\nF4AACgkQZLnGquLVUnizwA//c7vmwTMq/8LYlbo37WM2kDE9AKIrz6VSMq4RhGbC\nLikH0X0epa+if79n9BZrVU/Af3aKTn7vu2J4XrvzcdCXtcsR0YmCWML2Y6OSFmhX\nw3o6woiFcp+SUWdcM/kithRun+j9sKV4akdgkdBQUdh/RMVln+radz1c6G59iTdh\nS+Ip3ObO7Gn5VnrLwxix+W9Jhg8YhDgDGEDt8e1yvjuMRY+WhjHFlwEMoE0kvQL8\nQvQH2dGD3dExWAuIL7+0xC0ZGU0PR8vRrq1ukdIsWlDY+42vvhcyPZKFFDTM/QLF\nFcCNiPSGhiK/NQq67xnRMFdh0fnqbydWj2atMpacIrheEkOt8db2/UMyDOwlIxgy\nKOG8x+yNKiG9LyvW4axRLctN608/+TbvtFo5TVOFJYxJQp4b5uz7LgJAJw7PBvfC\nbqx64BH8WGzgyGcAl9unQEtpDuxXoKvP2kbsS7hjvhK0gJgW9llpV4sRJJGApTBc\nWtbcS9DBGs3k1aZdA72bxnayD32syVz7czl4+tkRsbQZ4VgJh1yrHIDsdWQXFnYu\nEQJfCgX5HvvC13MpDUth0NWCFtWQirY3EFbIgSuhB/D5iXA+Dt1Dq5c1u7wQlUVi\nLQCU++oMGrlU3gZrnov5lnBGCEjn0O9bKQm8zmLdEcENFxUZvfPjOIY64YprZxD9\nBv65Ag0EXAZRggEQAMmjHmnvH8SvNJhku/oI96dFKen3bg9xdaFUD1vAuNglCalH\nwgXcCZd0RdobYNG46cXTzTQadtHS4hi/UBJ+oy5ZUpIRglW12eTYtqM2G11VbcQi\nj6rLITP9NIP+G1xBICSYK4UwmH55BolMEQ/1ZX0a9rESM9stDNglheCCudbMGR/1\nZYnufdEsh0yPwyC/1upZeu8LPWK62pt9mE/gccx77QTeDi5OJcRf1fPbUTCm3vSS\nwPPV2AGANodIhostjDymt5vh0tGwc7oUZZLnVdErfuctv7yMgZdiCpYu0jFy1NYf\nJgOpZasrcK7/1ozGzsfAo/sSU4kIkMwuWGgqfx5kGRK2CgU4T0i7oI6DMpOX9ZS8\ns3+oCWu83X0ofvm5R2CbjiUj2gR6JOhBQbJpCeTkLe+SFcUpnyrr7lG8B8QZHm5N\nnBi05V/s63RE3g/6WpR/fWuh+uswe01uqlSx9deW7jT49BL/MdSxwjfwLBLz/hLM\n0ld385XAd9bqMjUtp0XhZX2YORx3f/aKY7PYA62baGibb5RdPRw6viEAWU20eb+8\nX9Pa7hGmwUeal5lka4SD/TGl7wdY+g4oYP+jtKinH/ZftWA5wHTe3jWT5bdWrT2d\ne+0qA0SBkmKIDLpktvtTa19w2nfwBIwJ6fN36ZjYpOn/stxR7aRtnhSqvzxbABEB\nAAGJAjYEGAEIACAWIQS3bWH6ptt1lGboPZlkucaq4tVSeAUCXAZRggIbDAAKCRBk\nucaq4tVSeGWmD/9Pg1x6s98zdZCQa2apmUnuoQAQA9Gf2RBBuglCDGsY67wbvdHZ\n9wdFRs2QEhl2O3oFmidxthBOBRl9z62nXliLwNn1Lcy/yDfaB8wH6gMm4jn2N/z9\nvQXnyIzg8m4PItZ1p5mnY3qH5lpGF8r9Gb7tzK10rqulM2XTDojZOevlEGI6LGw8\nFjccXtNquqGZwxzytmKF3T7UBmpmt2qock8N5iJn987m6WeYmbFNc0ii0guHfdtO\nzQcItz2ngCdyvfgQPwCAoAv72ysSGhz5KZgAXRrEdcqj6Jw3ivoEUKq1aUrYncXQ\n3zC3ED6AjWOGRzjvTZzj22IVacUZ0gqx0x/oldXLOhMB9u6nFXHKj1n9nc0XHMNi\nLp9EuvQgcNLjFZGE9sxh25u9V+OhItfT/aarYEu/Xq0IkUUcdz4GehXth1/Cq1wH\nlSUie4nCs7I7OWhqMNClqP7ywElDXsQ66MCgvf01Dh64YUVjJNnyyK0QiYlCx/JQ\nZ85hNLtVXZfYqC5BRZlVFp8I8Rs2Qos9YEgn2M22+Rj+RIeD74LZFB7Q4myRvTMB\n/P466dFI83KYhwvjBYOP3jPTrV7Ky8poEGifQp2mM294CFIPS7z0z7a8+yMzcsRP\nOluFxewsEO0QNDrfFb+0gnjYlnGqOFcZjUMXbDdY5oLSPtXohynuTK1qyQ==\n=Xn0G\n-----END PGP PUBLIC KEY BLOCK-----\n```\n\nTesting
\nIf you want to test your updates with the current golang testing units, you can follow the guide below to run a full test process. Each test for Statping will run in MySQL, Postgres, and SQlite to make sure all database types work correctly.\n\n## Create Docker Databases\nThe easiest way to run the tests on all 3 databases is by starting temporary databases servers with Docker. Docker is available for Linux, Mac and Windows. You can download/install it by going to the [Docker Installation](https://docs.docker.com/install/) site.\n\n```go\ndocker run -it -d \\\n -p 3306:3306 \\\n -env MYSQL_ROOT_PASSWORD=password123 \\\n -env MYSQL_DATABASE=root mysql\n```\n\n```go\ndocker run -it -d \\\n -p 5432:5432 \\\n -env POSTGRES_PASSWORD=password123 \\\n -env POSTGRES_USER=root \\\n -env POSTGRES_DB=root postgres\n```\n\nOnce you have MySQL and Postgres running, you can begin the testing. SQLite database will automatically create a `statup.db` file and will delete after testing.\n\n## Run Tests\nInsert the database environment variables to auto connect the the databases and run the normal test command: `go test -v`. You'll see a verbose output of each test. If all tests pass, make a push request! 💃\n```go\nDB_DATABASE=root \\\n DB_USER=root \\\n DB_PASS=password123 \\\n DB_HOST=localhost \\\n go test -v\n```\n\nDeployment
\nStatping is a pretty cool server for monitoring your services. The way we deploy might be a little cooler though. Statping is using the most bleeding edge technology to release updates and distribute binary files automatically.\n\n1. Source code commits get pushed to Github\n2. [Rice](https://github.com/GeertJohan/go.rice) will compile all the static assets into 1 file (rice-box.go in source)\n3. SASS will generate a compiled version of the CSS. \n4. Statping Help page is generated by cloning the Wiki repo using `go generate`.\n5. Travis-CI tests the Golang application.\n6. Travis-CI tests the Statping API using [Postman](https://github.com/statping/statping/blob/master/source/tmpl/postman.json).\n7. If all tests are successful, Travis-CI will compile the binaries using [xgo](https://github.com/karalabe/xgo).\n8. Binaries are code signed using the official [PGP key](https://github.com/statping/statping/wiki/PGP-Signature) and compressed.\n9. [Docker](https://cloud.docker.com/repository/docker/hunterlong/statping/builds) receives a trigger to build for the `latest` tag.\n10. Travis-CI uploads the [latest release](https://github.com/statping/statping/releases) as a tagged version on Github.\n11. Travis-CI updates the [homebrew-statping](https://github.com/hunterlong/homebrew-statping) repo with the latest version.\n\nAnd that's it! Statping is ready to be shipped and installed.\n\n")
+var CompiledWiki = []byte("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
\n\nTypes of Monitoring
\nYou can monitor your application by using a simple HTTP GET to the endpoint to return back a response and status code. Normally you want a 200 status code on an HTTP request. You might want to require a 404 or 500 error as a response code though. With each service you can include a Timeout in seconds to work with your long running services.\n\n# HTTP Endpoints with Custom POST\nFor more advanced monitoring you can add a data as a HTTP POST request. This is useful for automatically submitting JSON, or making sure your signup form is working correctly.\n\n\n
\n
\n\nWith a HTTP service, you can POST a JSON string to your endpoint to retrieve any type of response back. You can then use Regex in the Expected Response field to parse a custom response that exactly matches your status requirements. \n\n# TCP/UDP Services\nFor other services that don't use HTTP, you can monitor any type of service by using the PORT of the service. If you're Ethereum Blockchain server is running on 8545, you can use TCP to monitor your server. With a TCP service, you can monitor your Docker containers, or remove service running on a custom port. You don't need to include `http` in the endpoint field, just IP or Hostname.\n\n\n
\n
\n\n# ICMP Service\nYou can send a [ICMP](https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol) (ping) to an endpoint rather than HTTP/TCP/UDP request for a quick response.\n\n\nFeatures
\nStatping is a great Status Page that can be deployed with 0 effort.\n\n# 3 Different Databases\nYou can use MySQL, Postgres, or SQLite as a database for your Statping status page. The server will automatically upgrade your database tables depending on which database you have.\n\n# Easy to Startup\nStatping is an extremely easy to setup website monitoring tool without fussing with dependencies or packages. Simply download and install the precompile binary for your operating system. Statping works on Windows, Mac, Linux, Docker, and even the Raspberry Pi.\n\n# Plugins\nStatping is an awesome Status Page generator that allows you to create your own plugins with Golang Plugins! You don't need to request a PR or even tell us about your plugin. Plugin's are compiled and then send as a binary to the Statping `/plugins` folder. Test your plugins using the `statup test plugin` command, checkout the [Plugin Wiki](https://github.com/statping-ng/statping-ng/wiki/Statping-Plugins) to see detailed information about creating plugins.\n\n# No Maintenance\nMany other website monitoring applications will collect data until the server fails because of hard drive is 100% full. Statping will automatically delete records to make sure your server will stay UP for years. The EC2 AMI Image is a great way to host your status page without worrying about it crashing one day. Statping will automatically upgrade its software when you reboot your computer.\n\n# Email & Slack Notifications\nReceive email notifications if your website or application goes offline. Statping includes SMTP connections so you can use AWS SES, or any other SMTP emailing service. Go in the Email Settings in Settings to configure these options.\n\n# Prometheus Exporter\nIf you want a deeper view of your applications status, you can use Grafana and Prometheus to graph all types of data about your services. Read more about the [Prometheus Exporter](https://github.com/statping-ng/statping-ng/wiki/Prometheus-Exporter)\n\nStart Statping
\n\n\nLinux
\n# Installing on Linux\nInstalling Statping on Linux can be done by downloading the latest tar.gz file, unzipping, and running the executable. You can also install using [Snapcraft](https://snapcraft.io/) for Ubuntu systems.\n\n```shell\ncurl -o- -L https://statping.com/install.sh | bash\n```\n\n## Install using Snapcraft\n\n[](https://snapcraft.io/statping)\n\nIf you are using [snap](https://snapcraft.io/statping), you can simply run this command to install Statping.\n```shell\nsudo snap install statping\n```\n\n# Compiling SCSS for Custom Theme\nStatping requires `sass` to be installed to the local machine to compile SCSS into CSS if you want to use the Custom Theme features. \n\n- Apt: `apt install ruby-sass -y`\n- Node: `npm install sass -g`\n- Ruby: `gem install sass`\n\n## Systemd Service\nSetting up a systemd service is a great way to make sure your Statping server will automatically reboot when needed. You can use the file below for your service. You should have Statping already installed by this step.\n###### /etc/systemd/system/statping.service\n```\n[Unit]\nDescription=Statping Server\nAfter=network.target\nAfter=systemd-user-sessions.service\nAfter=network-online.target\n\n[Service]\nType=simple\nRestart=always\nExecStart=/usr/local/bin/statping\nWorkingDirectory=/usr/local/bin\n\n[Install]\nWantedBy=multi-user.target\n```\nThen you can enable and start your systemd service with:\n```\nsystemctl daemon-reload\n\nsystemctl enable statping.service\n\nsystemctl start statping\n```\nYou're Statping server will now automatically restart when your server restarts.\n\n## Raspberry Pi\nYou can even run Statping on your Raspberry Pi by installing the precompiled binary from [Latest Releases](https://github.com/statping-ng/statping-ng/releases/latest). For the Raspberry Pi 3 you'll want to download the `statping-linux-arm7.tar.gz` file. Be sure to change `VERSION` to the latest version in Releases, and include the 'v'.\n\n```\nVERSION=$(curl -s \"https://github.com/statping-ng/statping-ng/releases/latest\" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')\nwget https://github.com/statping-ng/statping-ng/releases/download/$VERSION/statping-linux-arm7.tar.gz\ntar -xvzf statping-linux-arm7.tar.gz\nchmod +x statping\nmv statping /usr/local/bin/statping\n\nstatping version\n``` \n\n## Alpine Linux\nThe Docker image is using the Statping Alpine binary since it's so incredibly small. You can run it on your own alpine image by downloading `statping-linux-alpine.tar.gz` from [Latest Releases](https://github.com/statping-ng/statping-ng/releases/latest).\n\nMac
\n# Installing on Mac\nStatping includes an easy to use [Homebrew Formula](https://github.com/hunterlong/homebrew-statping) to quick get your Status Page up and running locally. Statping on brew is automatically generated for each new release to master. Install with the commands below,\n###### Using Homebrew\n```bash\nbrew tap statping/statping\nbrew install statping\n```\n###### Using the Terminal\n```shell\ncurl -o- -L https://statping.com/install.sh | bash\n```\n\n\n
\n
\n\nOnce you've installed it, checkout which version you have by running `statping version`.\n\n# Compiling SCSS for Custom Theme\nStatping requires `sass` to be installed to the local machine to compile SCSS into CSS if you want to use the Custom Theme features. \n\n- Node: `npm install sass -g`\n- Ruby: `gem install sass`\n\n\nWindows
\n# Installing on Windows\nCurrently, Statping only works on Windows 64-bit computers. Just download the exe file from [Latest Releases](https://github.com/statping-ng/statping-ng/releases/latest) and run it in your command prompt. It will create a HTTP server on port 8080, so you can visit `http://localhost:8080` to see your Statping Status Page.\n\n# Compiling SCSS for Custom Theme\nStatping requires `sass` to be installed to the local machine to compile SCSS into CSS if you want to use the Custom Theme features. \n\n- Node: `npm install sass -g`\n- Ruby: `gem install sass`\n\n# Running Statping as a Service\nTo ensure Statping is always running, it can be installed to run as a service on a Windows machine. The easiest way to do that is by using NSSM, the [Non-Sucking Service Manager](https://nssm.cc/download). Download and unzip the compressed file to a location on your machine running Statping to get started:\n1. Open an administrative command prompt.\n2. Change to the folder that contains the 64 bit version of NSSM.\n3. Type \"nssm install Statping\" and press enter.\n4. For the properties, use the following as an example:\n Path: C:\\Program Files\\Statping\\statping.exe\n Startup directory: C:\\Program Files\\Statping\n5. Click \"Install\".\n6. Launch the windows services manager.\n7. Run Statping.\n\n## Known Issues with Windows\nUnfortunately, Statping only works on Windows 64-bit processors. If you have more than 4gb of ram, there's a good chance you already have a 64-bit processor. Download the [Latest Releases](https://github.com/statping-ng/statping-ng/releases/latest) of Statping, extract the ZIP file, then double click on the `statping.exe` file. You can use a SQLite database for a quick setup, or connect to a local/remote Postgres or MySQL database server.\n\nAWS EC2
\nRunning Statping on the smallest EC2 server is very quick using the AWS AMI Image. The AWS AMI Image will automatically start a Statping Docker container that will automatically update to the latest version. Once the EC2 is booted, you can go to the Public DNS domain to view the Statping installation page. The Statping root folder is located at: `/statping` on the server.\n\n# AMI Image\nChoose the correct AMI Image ID based on your AWS region.\n- us-east-1 `ami-09ccd23d9c7afba61` (Virginia)\n- us-east-2 `ami-0c6c9b714a501cdb3` (Ohio)\n- us-west-1 `ami-02159cc1fc701a77e` (California)\n- us-west-2 `ami-007c6990949f5ccee` (Oregon)\n- eu-central-1 `ami-06e252d6d8b0c2f1f` (Frankfurt)\n\n# Upgrading Staping\nYou can upgrade the Statping executable by running the commands below on your EC2 instance.\n```\nVERSION=$(curl -s \"https://github.com/statping-ng/statping-ng/releases/latest\" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')\nwget https://github.com/statping-ng/statping-ng/releases/download/$VERSION/statping-linux-x64.tar.gz\ntar -xvzf statping-linux-x64.tar.gz\nchmod +x statping\nmv statping /usr/local/bin/statping\n```\nYou can test the version number by running `statping version`.\n\n# Instructions\n\n### 1. Create an EC2 instance from AMI Image\nGo to the main EC2 dashboard and click 'Launch Instance'. Then type `Statping` inside the search field for 'Community AMI'. Once you've found it in your region, click Select!\n\n
\n\n### 2. Get the Public DNS for EC2 Instance\nCopy the 'Public DNS' URL and paste it into your browser.\n\n
\n\n### 3. Setup Statping\nUse SQLite if you don't want to connect to a remote MySQL or Postgres database.\n\n
\n\n# EC2 Server Features\nRunning your Statping server on a small EC2 instance is perfect for most users. Below you'll find some commands to get up and running in seconds.\n- Super cheap on the t2.nano (~$4.60 monthly)\n- Small usage, 8gb of hard drive\n- Automatic SSL certificate if you require it\n- Automatic reboot when the server needs it\n- Automatic database cleanup, so you'll never be at 100% full.\n- Automatic docker containers/images removal\n\n## Create Security Groups\nUsing the AWS CLI you can copy and paste the commands below to auto create everything for you. The server opens port 80 and 443.\n```bash\naws ec2 create-security-group --group-name StatpingPublicHTTP --description \"Statping HTTP Server on port 80 and 443\"\n# will response back a Group ID. Copy ID and use it for --group-id below.\n```\n```bash\nGROUPS=sg-7e8b830f\naws ec2 authorize-security-group-ingress --group-id $GROUPS --protocol tcp --port 80 --cidr 0.0.0.0/0\naws ec2 authorize-security-group-ingress --group-id $GROUPS --protocol tcp --port 443 --cidr 0.0.0.0/0\n```\n## Create EC2 without SSL\nOnce your server has started, go to the EC2 Public DNS endpoint. You should be redirected to /setup to continue your installation process! The database information is already inputed for you.\n```bash\nGROUPS=sg-7e8b830f\nKEY=MYKEYHERE\nAMI_IMAGE=ami-7be8a103\n\naws ec2 run-instances \\\n --image-id $AMI_IMAGE \\\n --count 1 --instance-type t2.nano \\\n --key-name $KEY \\\n --security-group-ids $GROUPS\n```\n## Create EC2 with Automatic SSL Certification\nStart a Statping server with an SSL cert that will automatically regenerate when it's near expiration time. You'll need to point your domain's A record (IP address) or CNAME (public DNS endpoint) to use this feature.\n\n```bash\nwget https://raw.githubusercontent.com/hunterlong/statping/master/dev/ec2-ssl.sh\n```\n\n```bash\n# edit the contents inside of ec2-ssl.sh then continue\nLETSENCRYPT_HOST=\"status.MYDOMAIN.com\"\nLETSENCRYPT_EMAIL=\"noreply@MYEMAIL.com\"\n```\nEdit ec2-ssl.sh and insert your domain you want to use, then run command below. Use the Security Group ID that you used above for --security-group-ids\n```\nGROUPS=sg-7e8b830f\nAMI_IMAGE=ami-7be8a103\nKEY=MYKEYHERE\n\naws ec2 run-instances \\\n --user-data file://ec2-ssl.sh \\\n --image-id $AMI_IMAGE \\\n --count 1 --instance-type t2.nano \\\n --key-name $KEY \\\n --security-group-ids $GROUPS\n```\n\n### EC2 Server Specs\n- t2.nano ($4.60 monthly)\n- 8gb SSD Memory\n- 0.5gb RAM\n- Docker with Docker Compose installed\n- Running Statping, NGINX, and Postgres\n- boot scripts to automatically clean unused containers.\n\n\n\nDocker
\nStatping is easily ran on Docker with the light weight Alpine linux image. View on [Docker Hub](https://hub.docker.com/r/hunterlong/statping).\n\n[](https://microbadger.com/images/hunterlong/statping) [](https://hub.docker.com/r/hunterlong/statping/builds/)\n\n# Latest Docker Image\nThe `latest` Docker image uses Alpine Linux to keep it ultra small.\n```bash\ndocker run -d \\\n -p 8080:8080 \\\n --restart always \\\n hunterlong/statping\n```\n\n# Mounting Volume\nYou can mount a volume to the `/app` Statping directory. This folder will contain `logs`, `config.yml`, and static assets if you want to edit the SCSS/CSS. \n```bash\ndocker run -d \\\n -p 8080:8080 \\\n -v /mydir/statping:/app \\\n --restart always \\\n hunterlong/statping\n```\n\n# Attach a SSL Certificate\nWhen you mount `server.crt` and `server.key` to the `/app` directory, Statping will run a HTTPS server on port 443. Checkout the [SSL Wiki](https://github.com/statping-ng/statping-ng/wiki/SSL) documentation to see more information about this.\n```bash\ndocker run -d \\\n -p 443:443 \\\n -v /mydir/domain.crt:/app/server.crt \\\n -v /mydir/domain.key:/app/server.key \\\n -v /mydir:/app \\\n --restart always \\\n hunterlong/statping\n```\n\n# Development Docker Image\nIf you want to run Statping that was build from the source, use the `dev` Docker image.\n```bash\ndocker run -d -p 8080:8080 hunterlong/statping:dev\n```\n\n# Cypress Testing Docker Image\nThis Docker image will pull the latest version of Statping and test the web interface with [Cypress](https://www.cypress.io/).\n```bash\ndocker run -it -p 8080:8080 hunterlong/statping:cypress\n```\n\n#### Or use Docker Compose\nThis Docker Compose file inlcudes NGINX, Postgres, and Statping.\n\n### Docker Compose with NGINX and Postgres\nOnce you initiate the `docker-compose.yml` file below go to http://localhost and you'll be forwarded to the /setup page. \nDatabase Authentication\n- database: `postgres`\n- port: `5432`\n- username: `statup`\n- password: `password123`\n- database: `statup`\n\n```yaml\nversion: '2.3'\n\nservices:\n\n nginx:\n container_name: nginx\n image: jwilder/nginx-proxy\n ports:\n - 0.0.0.0:80:80\n - 0.0.0.0:443:443\n networks:\n - internet\n restart: always\n volumes:\n - /var/run/docker.sock:/tmp/docker.sock:ro\n - ./statup/nginx/certs:/etc/nginx/certs:ro\n - ./statup/nginx/vhost:/etc/nginx/vhost.d\n - ./statup/nginx/html:/usr/share/nginx/html:ro\n - ./statup/nginx/dhparam:/etc/nginx/dhparam\n environment:\n DEFAULT_HOST: localhost\n\n statup:\n container_name: statup\n image: hunterlong/statping:latest\n restart: always\n networks:\n - internet\n - database\n depends_on:\n - postgres\n volumes:\n - ./statup/app:/app\n environment:\n VIRTUAL_HOST: localhost\n VIRTUAL_PORT: 8080\n DB_CONN: postgres\n DB_HOST: postgres\n DB_USER: statup\n DB_PASS: password123\n DB_DATABASE: statup\n NAME: EC2 Example\n DESCRIPTION: This is a Statping Docker Compose instance\n\n postgres:\n container_name: postgres\n image: postgres:10\n restart: always\n networks:\n - database\n volumes:\n - ./statup/postgres:/var/lib/postgresql/data\n environment:\n POSTGRES_PASSWORD: password123\n POSTGRES_USER: statup\n POSTGRES_DB: statup\n\nnetworks:\n internet:\n driver: bridge\n database:\n driver: bridge\n```\nOr a simple wget...\n```bash\nwget https://raw.githubusercontent.com/hunterlong/statping/master/servers/docker-compose.yml\ndocker-compose up -d\n```\n\n### Docker Compose with Automatic SSL\nYou can automatically start a Statping server with automatic SSL encryption using this docker-compose file. First point your domain's DNS to the Statping server, and then run this docker-compose command with DOMAIN and EMAIL. Email is for letsencrypt services.\n```bash\nwget https://raw.githubusercontent.com/hunterlong/statping/master/servers/docker-compose-ssl.yml\n\nLETSENCRYPT_HOST=mydomain.com \\\n LETSENCRYPT_EMAIL=info@mydomain.com \\\n docker-compose -f docker-compose-ssl.yml up -d\n```\n\n#### Full docker-compose with Automatic SSL\n\n```yaml\nversion: '2.3'\n\nservices:\n\n nginx:\n container_name: nginx\n image: jwilder/nginx-proxy\n ports:\n - 0.0.0.0:80:80\n - 0.0.0.0:443:443\n labels:\n - \"com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy\"\n networks:\n - internet\n restart: always\n volumes:\n - /var/run/docker.sock:/tmp/docker.sock:ro\n - ./statup/nginx/certs:/etc/nginx/certs:ro\n - ./statup/nginx/vhost:/etc/nginx/vhost.d\n - ./statup/nginx/html:/usr/share/nginx/html:ro\n - ./statup/nginx/dhparam:/etc/nginx/dhparam\n environment:\n DEFAULT_HOST: ${LETSENCRYPT_HOST}\n\n letsencrypt:\n container_name: letsencrypt\n image: jrcs/letsencrypt-nginx-proxy-companion\n networks:\n - internet\n restart: always\n volumes:\n - /var/run/docker.sock:/var/run/docker.sock:ro\n - ./statup/nginx/certs:/etc/nginx/certs\n - ./statup/nginx/vhost:/etc/nginx/vhost.d\n - ./statup/nginx/html:/usr/share/nginx/html\n - ./statup/nginx/dhparam:/etc/nginx/dhparam\n\n statup:\n container_name: statup\n image: hunterlong/statping:latest\n restart: always\n networks:\n - internet\n - database\n depends_on:\n - postgres\n volumes:\n - ./statup/app:/app\n environment:\n VIRTUAL_HOST: ${LETSENCRYPT_HOST}\n VIRTUAL_PORT: 8080\n LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}\n LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}\n DB_CONN: postgres\n DB_HOST: postgres\n DB_USER: statup\n DB_PASS: password123\n DB_DATABASE: statup\n NAME: SSL Example\n DESCRIPTION: This Status Status Page should be running ${LETSENCRYPT_HOST} with SSL.\n\n postgres:\n container_name: postgres\n image: postgres:10\n restart: always\n networks:\n - database\n volumes:\n - ./statup/postgres:/var/lib/postgresql/data\n environment:\n POSTGRES_PASSWORD: password123\n POSTGRES_USER: statup\n POSTGRES_DB: statup\n\nnetworks:\n internet:\n driver: bridge\n database:\n driver: bridge\n```\n\nMobile App
\nStatping has a free mobile app so you can monitor your websites and applications without the need of a computer. \n\n\n\n\n\n\n
\n
\n\n\nHeroku
\nYou can now instantly deploy your Statping instance on a free Heroku container. Simply click the deploy button below and get up in running within seconds. This Heroku deployment is based on the Statping Docker image so you will have all the great features including SASS and all the notifiers without any setup. \n\n[](https://heroku.com/deploy?template=https://github.com/statping-ng/statping-ng/tree/master)\n\nView the live Heroku Statping instance at: [https://statping.herokuapp.com](https://statping.herokuapp.com)\n\n# Database Configuration\nYou will need to deploy a Postgres database to your instance and insert some configuration variables. View the image below to see what environment variable you need to configure. If you insert `DB_CONN`, Statping will attempt to automatically connect to the database without the need for the `config.yml` file. \n\n\n\n\nAPI
\nStatping includes a RESTFUL API so you can view, update, and edit your services with easy to use routes. You can currently view, update and delete services, view, create, update users, and get detailed information about the Statping instance. To make life easy, try out a Postman or Swagger JSON file and use it on your Statping Server.\n\n\nPostman | Postman JSON Export | Swagger Export\n
\n\n## Authentication\nAuthentication uses the Statping API Secret to accept remote requests. You can find the API Secret in the Settings page of your Statping server. To send requests to your Statping API, include a Authorization Header when you send the request. The API will accept any one of the headers below.\n\n- HTTP Header: `Authorization: API SECRET HERE`\n- HTTP Header: `Authorization: Bearer API SECRET HERE`\n\n## Main Route `/api`\nThe main API route will show you all services and failures along with them.\n\n## Services\nThe services API endpoint will show you detailed information about services and will allow you to edit/delete services with POST/DELETE http methods.\n\n### Viewing All Services\n- Endpoint: `/api/services`\n- Method: `GET`\n- Response: Array of [Services](https://github.com/statping-ng/statping-ng/wiki/API#service-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\n### Viewing Service\n- Endpoint: `/api/services/{id}`\n- Method: `GET`\n- Response: [Service](https://github.com/statping-ng/statping-ng/wiki/API#service-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\n### Updating Service\n- Endpoint: `/api/services/{id}`\n- Method: `POST`\n- Response: [Service](https://github.com/statping-ng/statping-ng/wiki/API#service-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nPOST Data:\n```json\n{\n \"name\": \"Updated Service\",\n \"domain\": \"https://google.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 15,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 10,\n \"order_id\": 0\n}\n```\n\n### Create New Service\n- Endpoint: `/api/services`\n- Method: `POST`\n- Response: [Service](https://github.com/statping-ng/statping-ng/wiki/API#service-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nPOST Data:\n```json\n{\n \"name\": \"Create New Service\",\n \"domain\": \"https://www.coogger.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 15,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 10,\n \"order_id\": 0\n}\n```\n\n### Deleting Service\n- Endpoint: `/api/services/{id}`\n- Method: `DELETE`\n- Response: [Object Response](https://github.com/statping-ng/statping-ng/wiki/API#object-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nResponse:\n```json\n{\n \"status\": \"success\",\n \"id\": 4,\n \"type\": \"service\",\n \"method\": \"delete\"\n}\n```\n\n## Users\nThe users API endpoint will show you users that are registered inside your Statping instance.\n\n### View All Users\n- Endpoint: `/api/users`\n- Method: `GET`\n- Response: Array of [Users](https://github.com/statping-ng/statping-ng/wiki/API#user-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\n### Viewing User\n- Endpoint: `/api/users/{id}`\n- Method: `GET`\n- Response: [User](https://github.com/statping-ng/statping-ng/wiki/API#user-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\n### Creating New User\n- Endpoint: `/api/users`\n- Method: `POST`\n- Response: [User](https://github.com/statping-ng/statping-ng/wiki/API#user-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nPOST Data:\n```json\n{\n \"username\": \"newadmin\",\n \"email\": \"info@email.com\",\n \"password\": \"password123\",\n \"admin\": true\n}\n```\n\n### Updating User\n- Endpoint: `/api/users/{id}`\n- Method: `POST`\n- Response: [User](https://github.com/statping-ng/statping-ng/wiki/API#user-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nPOST Data:\n```json\n{\n \"username\": \"updatedadmin\",\n \"email\": \"info@email.com\",\n \"password\": \"password123\",\n \"admin\": true\n}\n```\n\n### Deleting User\n- Endpoint: `/api/services/{id}`\n- Method: `DELETE`\n- Response: [Object Response](https://github.com/statping-ng/statping-ng/wiki/API#object-response)\n- Response Type: `application/json`\n- Request Type: `application/json`\n\nResponse:\n```json\n{\n \"status\": \"success\",\n \"id\": 3,\n \"type\": \"user\",\n \"method\": \"delete\"\n}\n```\n\n# Service Response\n```json\n{\n \"id\": 8,\n \"name\": \"Test Service 0\",\n \"domain\": \"https://status.coinapp.io\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 1,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 30,\n \"order_id\": 0,\n \"created_at\": \"2018-09-12T09:07:03.045832088-07:00\",\n \"updated_at\": \"2018-09-12T09:07:03.046114305-07:00\",\n \"online\": false,\n \"latency\": 0.031411064,\n \"24_hours_online\": 0,\n \"avg_response\": \"\",\n \"status_code\": 502,\n \"last_online\": \"0001-01-01T00:00:00Z\",\n \"dns_lookup_time\": 0.001727175,\n \"failures\": [\n {\n \"id\": 5187,\n \"issue\": \"HTTP Status Code 502 did not match 200\",\n \"created_at\": \"2018-09-12T10:41:46.292277471-07:00\"\n },\n {\n \"id\": 5188,\n \"issue\": \"HTTP Status Code 502 did not match 200\",\n \"created_at\": \"2018-09-12T10:41:47.337659862-07:00\"\n }\n ]\n}\n```\n\n# User Response\n```json\n{\n \"id\": 1,\n \"username\": \"admin\",\n \"api_key\": \"02f324450a631980121e8fd6ea7dfe4a7c685a2f\",\n \"admin\": true,\n \"created_at\": \"2018-09-12T09:06:53.906398511-07:00\",\n \"updated_at\": \"2018-09-12T09:06:54.972440207-07:00\"\n}\n```\n\n# Object Response\n```json\n{\n \"type\": \"service\",\n \"id\": 19,\n \"method\": \"delete\",\n \"status\": \"success\"\n}\n```\n\n# Main API Response\n```json\n{\n \"name\": \"Awesome Status\",\n \"description\": \"An awesome status page by Statping\",\n \"footer\": \"This is my custom footer\",\n \"domain\": \"https://demo.statping.com\",\n \"version\": \"v0.56\",\n \"migration_id\": 1536768413,\n \"created_at\": \"2018-09-12T09:06:53.905374829-07:00\",\n \"updated_at\": \"2018-09-12T09:07:01.654201225-07:00\",\n \"database\": \"sqlite\",\n \"started_on\": \"2018-09-12T10:43:07.760729349-07:00\",\n \"services\": [\n {\n \"id\": 1,\n \"name\": \"Google\",\n \"domain\": \"https://google.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 10,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 10,\n \"order_id\": 0,\n \"created_at\": \"2018-09-12T09:06:54.97549122-07:00\",\n \"updated_at\": \"2018-09-12T09:06:54.975624103-07:00\",\n \"online\": true,\n \"latency\": 0.09080986,\n \"24_hours_online\": 0,\n \"avg_response\": \"\",\n \"status_code\": 200,\n \"last_online\": \"2018-09-12T10:44:07.931990439-07:00\",\n \"dns_lookup_time\": 0.005543935\n }\n ]\n}\n```\n\n\nMakefile
\nHere's a simple list of Makefile commands you can run using `make`. The [Makefile](https://github.com/statping-ng/statping-ng/blob/master/Makefile) may change often, so i'll try to keep this Wiki up-to-date.\n\n- Ubuntu `apt-get install build-essential`\n- MacOSX `sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer`\n- Windows [Install Guide for GNU make utility](http://gnuwin32.sourceforge.net/packages/make.htm)\n- CentOS/RedHat `yum groupinstall \"Development Tools\"`\n\n### Commands\n```bash\nmake build # build the binary\nmake install\nmake run\nmake test\nmake coverage\nmake docs\n# Building Statping\nmake build-all\nmake build-alpine\nmake docker\nmake docker-run\nmake docker-dev\nmake docker-run-dev\nmake databases\nmake dev-deps\nmake clean\nmake compress\nmake cypress-install\nmake cypress-test\n```\n\nNotifiers
\n\n
\n
\n\nStatping includes multiple Notifiers to alert you when your services are offline. You can also create your own notifier and send a Push Request to this repo! Creating a custom notifier is pretty easy as long as you follow the requirements. A notifier will automatically be installed into the users Statping database, and form values will save without any hassles. 💃\n\n\nExample Code | Events | View Notifiers
\n
\n
\n\n## Notifier Requirements\n- Must have a unique `METHOD` name\n- Struct must have `*notifier.Notification` pointer in it. \n- Must create and add your notifier variable in `init()`\n- Should have a form for user to input their variables/keys. `Form: []notifier.NotificationForm`\n\n## Notifier Interface (required)\nStatping has the `Notifier` interface which you'll need to include in your notifier. Statping includes many other events/triggers for your notifier, checkout Notifier Events to see all of them.\n```go\n// Notifier interface is required to create a new Notifier\ntype Notifier interface {\n\tOnSave() error // OnSave is triggered when the notifier is saved\n\tSend(interface{}) error // OnSave is triggered when the notifier is saved\n\tSelect() *Notification // Select returns the *Notification for a notifier\n}\n```\n\n### Basic Interface (required)\nInclude `OnSuccess` and `OnFailure` to receive events when a service is online or offline.\n```go\n// BasicEvents includes the most minimal events, failing and successful service triggers\ntype BasicEvents interface {\n\t// OnSuccess is triggered when a service is successful\n\tOnSuccess(*services.Service)\n\t// OnFailure is triggered when a service is failing\n\tOnFailure(*services.Service, *types.Failure)\n}\n```\n\n### Test Interface\nThe OnTest method will give the front end user the ability to test your notifier without saving, the OnTest method for your notifier run the functionality to test the user's submitted parameters and respond an error if notifier is not correctly setup.\n```go\n// Tester interface will include a function to Test users settings before saving\ntype Tester interface {\n\tOnTest() error\n}\n```\nIf your notifier includes this interface, the Test button will appear.\n\n## Notifier Struct\n```go\nvar example = &Example{¬ifier.Notification{\n\tMethod: \"example\", // unique method name\n\tHost: \"http://exmaplehost.com\", // default 'host' field\n\tForm: []notifier.NotificationForm{{\n\t\tType: \"text\", // text, password, number, or email\n\t\tTitle: \"Host\", // The title of value in form\n\t\tPlaceholder: \"Insert your Host here.\", // Optional placeholder in input\n\t\tDbField: \"host\", // An accepted DbField value (read below)\n\t}},\n}\n```\n\n## Notifier Form\nInclude a form with your notifier so other users can save API keys, username, passwords, and other values. \n```go\n// NotificationForm contains the HTML fields for each variable/input you want the notifier to accept.\ntype NotificationForm struct {\n\tType string `json:\"type\"` // the html input type (text, password, email)\n\tTitle string `json:\"title\"` // include a title for ease of use\n\tPlaceholder string `json:\"placeholder\"` // add a placeholder for the input\n\tDbField string `json:\"field\"` // true variable key for input\n\tSmallText string `json:\"small_text\"` // insert small text under a html input\n\tRequired bool `json:\"required\"` // require this input on the html form\n\tIsHidden bool `json:\"hidden\"` // hide this form element from end user\n\tIsList bool `json:\"list\"` // make this form element a comma separated list\n\tIsSwitch bool `json:\"switch\"` // make the notifier a boolean true/false switch\n}\n```\n\n### Example Notifier Form\nThis is the Slack Notifier `Form` fields.\n```go\nForm: []notifier.NotificationForm{{\n\t\tType: \"text\",\n\t\tTitle: \"Incoming webhooker Url\",\n\t\tPlaceholder: \"Insert your slack webhook URL here.\",\n\t\tSmallText: \"Incoming webhooker URL from slack Apps\",\n\t\tDbField: \"Host\",\n\t\tRequired: true,\n\t}}\n}\n```\n\n### Accepted DbField Values\nThe `notifier.NotificationForm` has a field called `DbField` which is the column to save the value into the database. Below are the acceptable DbField string names to include in your form. \n- `host` used for a URL or API endpoint\n- `username` used for a username\n- `password` used for a password\n- `port` used for a integer port number\n- `api_key` used for some kind of API key\n- `api_secret` used for some API secret\n- `var1` used for any type of string\n- `var2` used for any type of string (extra)\n\n### Form Elements\nYou can completely custom your notifications to include a detailed form. \n- `Type` is a HTML input type for your field\n- `Title` give your input element a title\n- `Placeholder` optional field if you want a placeholder in input\n- `DbField` required field to save variable into database (read above)\n- `Placeholder` optional field for inserting small hint under the input\n\n# Adding Notifiers\nTo add a notifier to the Statping application, simply append your Notifier in the `AttachNotifiers()` function inside of [core/core.go](https://github.com/statping-ng/statping-ng/blob/master/core/core.go).\n\n```go\n// AttachNotifiers will attach all the notifier's into the system\nfunc AttachNotifiers() error {\n\treturn notifier.AddNotifiers(\n\t\tnotifiers.Command,\n\t\tnotifiers.Discorder,\n\t\tnotifiers.Emailer,\n\t\tnotifiers.LineNotify,\n\t\tnotifiers.Mobile,\n\t\tnotifiers.Slacker,\n\t\tnotifiers.Telegram,\n\t\tnotifiers.Twilio,\n\t\tnotifiers.Webhook,\n\t)\n}\n```\n###### [AttachNotifiers](https://github.com/statping-ng/statping-ng/blob/master/core/core.go#L183)\n\nNotifier Events
\nEvents are handled by added interfaces for the elements you want to monitor.\n\n## Required Notifier Interface\n```go\n// Notifier interface is required to create a new Notifier\ntype Notifier interface {\n\t// Run will trigger inside of the notifier when enabled\n\tRun() error\n\t// OnSave is triggered when the notifier is saved\n\tOnSave() error\n\t// Test will run a function inside the notifier to Test if it works\n\tTest() error\n\t// Select returns the *Notification for a notifier\n\tSelect() *Notification\n}\n```\n\n## Basic Success/Failure Interface\n```go\n// BasicEvents includes the most minimal events, failing and successful service triggers\ntype BasicEvents interface {\n\t// OnSuccess is triggered when a service is successful\n\tOnSuccess(*services.Service)\n\t// OnFailure is triggered when a service is failing\n\tOnFailure(*services.Service, *types.Failure)\n}\n```\n\n\n## Service Events\n```go\n// ServiceEvents are events for Services\ntype ServiceEvents interface {\n\tOnNewService(*services.Service)\n\tOnUpdatedService(*services.Service)\n\tOnDeletedService(*services.Service)\n}\n```\n\n## User Events\n```go\n// UserEvents are events for Users\ntype UserEvents interface {\n\tOnNewUser(*types.User)\n\tOnUpdatedUser(*types.User)\n\tOnDeletedUser(*types.User)\n}\n```\n\n## Core Events\n```go\n// CoreEvents are events for the main Core app\ntype CoreEvents interface {\n\tOnUpdatedCore(*types.Core)\n}\n```\n\n## Notifier Events\n```go\n// NotifierEvents are events for other Notifiers\ntype NotifierEvents interface {\n\tOnNewNotifier(*Notification)\n\tOnUpdatedNotifier(*Notification)\n}\n```\n\nNotifier Example
\nBelow is a full example of a Statping notifier which will give you a good example of how to create your own. Insert your new notifier inside the `/notifiers` folder once your ready!\n\n```go\npackage notifiers\n\nimport (\n\t\"errors\"\n\t\"fmt\"\n\t\"github.com/statping-ng/statping-ng/types\"\n \"github.com/statping-ng/statping-ng/core/notifier\"\n\t\"time\"\n)\n\ntype Example struct {\n\t*notifier.Notification\n}\n\nvar example = &Example{¬ifier.Notification{\n\tMethod: METHOD,\n\tTitle: \"Example\",\n\tDescription: \"Example Notifier\",\n\tAuthor: \"Hunter Long\",\n\tAuthorUrl: \"https://github.com/hunterlong\",\n\tDelay: time.Duration(5 * time.Second),\n\tForm: []notifier.NotificationForm{{\n\t\tType: \"text\",\n\t\tTitle: \"Host\",\n\t\tPlaceholder: \"Insert your Host here.\",\n\t\tDbField: \"host\",\n\t\tSmallText: \"this is where you would put the host\",\n\t}, {\n\t\tType: \"text\",\n\t\tTitle: \"Username\",\n\t\tPlaceholder: \"Insert your Username here.\",\n\t\tDbField: \"username\",\n\t}, {\n\t\tType: \"password\",\n\t\tTitle: \"Password\",\n\t\tPlaceholder: \"Insert your Password here.\",\n\t\tDbField: \"password\",\n\t}, {\n\t\tType: \"number\",\n\t\tTitle: \"Port\",\n\t\tPlaceholder: \"Insert your Port here.\",\n\t\tDbField: \"port\",\n\t}, {\n\t\tType: \"text\",\n\t\tTitle: \"API Key\",\n\t\tPlaceholder: \"Insert your API Key here\",\n\t\tDbField: \"api_key\",\n\t}, {\n\t\tType: \"text\",\n\t\tTitle: \"API Secret\",\n\t\tPlaceholder: \"Insert your API Secret here\",\n\t\tDbField: \"api_secret\",\n\t}, {\n\t\tType: \"text\",\n\t\tTitle: \"Var 1\",\n\t\tPlaceholder: \"Insert your Var1 here\",\n\t\tDbField: \"var1\",\n\t}, {\n\t\tType: \"text\",\n\t\tTitle: \"Var2\",\n\t\tPlaceholder: \"Var2 goes here\",\n\t\tDbField: \"var2\",\n\t}},\n}}\n\n// REQUIRED init() will install/load the notifier\nfunc init() {\n\tnotifier.AddNotifier(example)\n}\n\n// REQUIRED - Send is where you would put the action's of your notifier\nfunc (n *Example) Send(msg interface{}) error {\n\tmessage := msg.(string)\n\tfmt.Printf(\"i received this string: %v\\n\", message)\n\treturn nil\n}\n\n// REQUIRED\nfunc (n *Example) Select() *notifier.Notification {\n\treturn n.Notification\n}\n\n// REQUIRED\nfunc (n *Example) OnSave() error {\n\tmsg := fmt.Sprintf(\"received on save trigger\")\n\tn.AddQueue(msg)\n\treturn nil\n}\n\n// REQUIRED\nfunc (n *Example) Test() error {\n\tmsg := fmt.Sprintf(\"received a test trigger\\n\")\n\tn.AddQueue(msg)\n\treturn nil\n}\n\n// REQUIRED - BASIC EVENT\nfunc (n *Example) OnSuccess(s *services.Service) {\n\tmsg := fmt.Sprintf(\"received a count trigger for service: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// REQUIRED - BASIC EVENT\nfunc (n *Example) OnFailure(s *services.Service, f *types.Failure) {\n\tmsg := fmt.Sprintf(\"received a failure trigger for service: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnNewService(s *services.Service) {\n\tmsg := fmt.Sprintf(\"received a new service trigger for service: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnUpdatedService(s *services.Service) {\n\tmsg := fmt.Sprintf(\"received a update service trigger for service: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnDeletedService(s *services.Service) {\n\tmsg := fmt.Sprintf(\"received a delete service trigger for service: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnNewUser(s *types.User) {\n\tmsg := fmt.Sprintf(\"received a new user trigger for user: %v\\n\", s.Username)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnUpdatedUser(s *types.User) {\n\tmsg := fmt.Sprintf(\"received a updated user trigger for user: %v\\n\", s.Username)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnDeletedUser(s *types.User) {\n\tmsg := fmt.Sprintf(\"received a deleted user trigger for user: %v\\n\", s.Username)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnUpdatedCore(s *types.Core) {\n\tmsg := fmt.Sprintf(\"received a updated core trigger for core: %v\\n\", s.Name)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnNewNotifier(s *Notification) {\n\tmsg := fmt.Sprintf(\"received a new notifier trigger for notifier: %v\\n\", s.Method)\n\tn.AddQueue(msg)\n}\n\n// OPTIONAL\nfunc (n *Example) OnUpdatedNotifier(s *Notification) {\n\tmsg := fmt.Sprintf(\"received a update notifier trigger for notifier: %v\\n\", s.Method)\n\tn.AddQueue(msg)\n}\n```\n\n\nPrometheus Exporter
\nStatping includes a 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.\n\n# Grafana Dashboard\nStatping has a [Grafana Dashboard](https://grafana.com/dashboards/6950) that you can quickly implement if you've added your Statping service to Prometheus. Import Dashboard ID: `6950` into your Grafana dashboard and watch the metrics come in!\n\n
\n\n## Basic Prometheus Exporter\nIf you have Statping and the Prometheus server in the same Docker network, you can use the yaml config below.\n```yaml\nscrape_configs:\n - job_name: 'statping'\n scrape_interval: 30s\n bearer_token: 'SECRET API KEY HERE'\n static_configs:\n - targets: ['statping:8080']\n```\n\n## Remote URL Prometheus Exporter\nThis exporter yaml below has `scheme: https`, which you can remove if you arn't using HTTPS.\n```yaml\nscrape_configs:\n - job_name: 'statping'\n scheme: https\n scrape_interval: 30s\n bearer_token: 'SECRET API KEY HERE'\n static_configs:\n - targets: ['status.mydomain.com']\n```\n\n### `/metrics` Output\n```\nstatping_total_failures 206\nstatping_total_services 4\nstatping_service_failures{id=\"1\" name=\"Google\"} 0\nstatping_service_latency{id=\"1\" name=\"Google\"} 12\nstatping_service_online{id=\"1\" name=\"Google\"} 1\nstatping_service_status_code{id=\"1\" name=\"Google\"} 200\nstatping_service_response_length{id=\"1\" name=\"Google\"} 10777\nstatping_service_failures{id=\"2\" name=\"Statping.com\"} 0\nstatping_service_latency{id=\"2\" name=\"Statping.com\"} 3\nstatping_service_online{id=\"2\" name=\"Statping.com\"} 1\nstatping_service_status_code{id=\"2\" name=\"Statping.com\"} 200\nstatping_service_response_length{id=\"2\" name=\"Statping.com\"} 2\n```\n\nSSL
\nYou can run Statping with a valid certificate by including 2 files in the root directory. Although, I personally recommend using NGINX or Apache to serve the SSL and then have the webserver direct traffic to the Statping instance. This guide will show you how to implement SSL onto your Statping server with multiple options.\n\n## SSL Certificate with Statping\nTo run the Statping HTTP server in SSL mode, you must include 2 files in the root directory of your Statping application. The 2 files you must include are:\n- `server.crt` SSL Certificate File\n- `server.key` SSL Certificate Key File\n\nThe filenames and extensions must match the exact naming above. If these 2 files are found, Statping will automatically start the HTTP server in SSL mode using your certificates. You can also generate your own SSL certificates, but you will receive a \"ERR_CERT_AUTHORITY_INVALID\" error. To generate your own, follow the commands below:\n\n```shell\nopenssl req -new -sha256 -key server.key -out server.csr\nopenssl x509 -req -sha256 -in server.csr -signkey server.key -out server.crt -days 3650\n```\nThis will generate a self signed certificate that you can use for your Statup instance. I recommend using a web server to do SSL termination for your server though.\n\n## Choose a Web Server or Environment\n\n**Choose the environment running the Statping instance.**\n- [Docker](#docker)\n- [NGINX](#nginx)\n- [Apache](#apache)\n\n## Docker\nDocker might be the easiest way to get up and running with a SSL certificate. Below is a `docker-compose.yml` file that will run NGINX, LetEncrypt, and Statping.\n\n1. Point your domain or subdomain to the IP address of the Docker server. This would be done on CloudFlare, Route53, or some other DNS provider.\n\n2. Replace the `docker-compose.yml` contents:\n- `MY.DOMAIN.COM` with the domain you want to use\n- `MY@EMAIL.COM` with your email address\n\n3. Run the docker container by running command `docker-compose up -d`. Give a little bit of time for LetEncrypt to automatically generate your SSL certificate.\n\n###### `docker-compose.yml`\n```yaml\nversion: '2.3'\nservices:\n nginx:\n container_name: nginx\n image: jwilder/nginx-proxy\n ports:\n - 0.0.0.0:80:80\n - 0.0.0.0:443:443\n labels:\n - \"com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy\"\n networks:\n - internet\n restart: always\n volumes:\n - /var/run/docker.sock:/tmp/docker.sock:ro\n - ./statping/nginx/certs:/etc/nginx/certs:ro\n - ./statping/nginx/vhost:/etc/nginx/vhost.d\n - ./statping/nginx/html:/usr/share/nginx/html:ro\n - ./statping/nginx/dhparam:/etc/nginx/dhparam\n environment:\n DEFAULT_HOST: MY.DOMAIN.COM\n\n letsencrypt:\n container_name: letsencrypt\n image: jrcs/letsencrypt-nginx-proxy-companion\n networks:\n - internet\n restart: always\n volumes:\n - /var/run/docker.sock:/var/run/docker.sock:ro\n - ./statping/nginx/certs:/etc/nginx/certs\n - ./statping/nginx/vhost:/etc/nginx/vhost.d\n - ./statping/nginx/html:/usr/share/nginx/html\n - ./statping/nginx/dhparam:/etc/nginx/dhparam\n\n statping:\n container_name: statping\n image: hunterlong/statping:latest\n restart: always\n networks:\n - internet\n depends_on:\n - nginx\n volumes:\n - ./statping/app:/app\n environment:\n VIRTUAL_HOST: MY.DOMAIN.COM\n VIRTUAL_PORT: 8080\n LETSENCRYPT_HOST: MY.DOMAIN.COM\n LETSENCRYPT_EMAIL: MY@EMAIL.COM\n\nnetworks:\n internet:\n driver: bridge\n```\n\n## NGINX\nIf you already have a NGINX web server running, you just have to add a proxy pass and your SSL certs to the nginx config or as a vhost. By default Statping runs on port 8080, you can change this port by starting server with `statping -ip 127.0.0.1 -port 9595`.\n\n- Replace `/my/absolute/directory/for/cert/server.crt` with SSL certificate file.\n- Replace `/my/absolute/directory/for/key/server.key` with SSL key file.\n- Run `service nginx restart` and try out https on your domain.\n\n##### Tutorials\n- [NGINX Guide](https://docs.nginx.com/nginx/admin-guide/security-controls/terminating-ssl-http/)\n- [How To Set Up Nginx Load Balancing with SSL Termination](https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-load-balancing-with-ssl-termination)\n\n###### `/etc/nginx/nginx.conf`\n```\n#user nobody;\nworker_processes 1;\nevents {\n worker_connections 1024;\n}\nhttp {\n include mime.types;\n default_type application/octet-stream;\n send_timeout 1800;\n sendfile on;\n keepalive_timeout 6500;\n server {\n listen 80;\n server_name localhost;\n location / {\n proxy_pass http://localhost:8080;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Client-Verify SUCCESS;\n proxy_set_header X-Client-DN $ssl_client_s_dn;\n proxy_set_header X-SSL-Subject $ssl_client_s_dn;\n proxy_set_header X-SSL-Issuer $ssl_client_i_dn;\n proxy_read_timeout 1800;\n proxy_connect_timeout 1800;\n }\n }\n # HTTPS server\n \n server {\n listen 443;\n server_name localhost;\n \n ssl on;\n ssl_certificate /my/absolute/directory/for/cert/server.crt;\n ssl_certificate_key /my/absolute/directory/for/key/server.key;\n ssl_session_timeout 5m;\n \n ssl_protocols SSLv2 SSLv3 TLSv1;\n ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;\n ssl_prefer_server_ciphers on;\n \n location / {\n proxy_pass http://localhost:8080;\n proxy_set_header Host $host;\n proxy_set_header X-Real-IP $remote_addr;\n proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\n proxy_set_header X-Client-Verify SUCCESS;\n proxy_set_header X-Client-DN $ssl_client_s_dn;\n proxy_set_header X-SSL-Subject $ssl_client_s_dn;\n proxy_set_header X-SSL-Issuer $ssl_client_i_dn;\n proxy_read_timeout 1800;\n proxy_connect_timeout 1800;\n }\n }\n}\n```\n\n## Apache\n\nConfig with .env File
\nIt may be useful to load your environment using a `.env` file in the root directory of your Statping server. The .env file will be automatically loaded on startup and will overwrite all values you have in config.yml.\n\nIf you have the `DB_CONN` environment variable set Statping will bypass all values in config.yml and will require you to have the other DB_* variables in place. You can pass in these environment variables without requiring a .env file.\n\n## `.env` File\n```bash\nDB_CONN=postgres\nDB_HOST=0.0.0.0\nDB_PORT=5432\nDB_USER=root\nDB_PASS=password123\nDB_DATABASE=root\n\nNAME=Demo\nDESCRIPTION=This is an awesome page\nDOMAIN=https://domain.com\nADMIN_USER=admin\nADMIN_PASSWORD=admin\nADMIN_EMAIL=info@admin.com\nUSE_CDN=true\nPOSTGRES_SSLMODE=false # enable ssl_mode for postgres (To enable use require)\nDISABLE_LOGS=false # disable logs from appearing and writing to disk\n\nIS_DOCKER=false\nIS_AWS=false\nSASS=/usr/local/bin/sass\nCMD_FILE=/bin/bash\n```\nThis .env file will include additional variables in the future, subscribe to this repo to keep up-to-date with changes and updates. \n\nStatic Export
\nIf you want to use Statping as a CLI application without running a server, you can export your status page to a static HTML.\nThis export tool is very useful for people who want to export their HTML and upload/commit it to Github Pages or an FTP server.\n```dash\nstatup export\n```\n###### Creates `index.html` in the current directory with CDN asset URL's. 💃 \n\nStatping Plugins
\nSince Statping is built in Go Language we can use the [Go Plugin](https://golang.org/pkg/plugin/) feature to create dynamic plugins that run on load. Statping has an event anytime anything happens, you can create your own plugins and do any type of function. To implement your own ideas into Statping, use the plugin using the [statup/plugin](https://github.com/statping-ng/statping-ng/blob/master/plugin/main.go) package.\n```\ngo get github.com/statping-ng/statping-ng/plugin\n```\n\n## Example Plugin\nStart off with the [Example Statping Plugin](https://github.com/statping/statping_plugin) that includes all the interfaces and some custom options for you to expand on. You can include any type of function in your own plugin!\n\n\n
\n
\n\n## Building Plugins\nPlugins don't need a push request and they can be private! You'll need to compile your plugin to the Golang `.so` binary format. Once you've built your plugin, insert it into the `plugins` folder in your Statping directory and reboot the application. Clone the [Example Statping Plugin](https://github.com/statping/statping_plugin) repo and try to build it yourself!\n\n#### Build Requirements\n- You must have `main.go`\n- You must create the Plugin variable on `init()`\n\n```bash\ngit clone https://github.com/statping/statping_plugin\ncd statup-plugin\ngo build -buildmode=plugin -o example.so\n```\n###### Insert `example.so` into the `plugins` directory and reload Statping\n\n## Testing Statping Plugins\nStatping includes a couple tools to help you on your Plugin journey, you can use `statup test plugins` command to test all plugins in your `/plugins` folder. This test will attempt to parse your plugin details, and then it will send events for your plugin to be fired.\n```\nstatup test plugins\n```\n\n
\n
\n\nYour plugin should be able to parse and receive events before distributing it. The test tools creates a temporary database (SQLite) that your plugin can interact with. Statping uses [upper.io/db.v3](https://upper.io/db.v3) for database interactions. The database is passed to your plugin `OnLoad(db sqlbuilder.Database)`, so you can use the `db` variable passed here.\n\n## Statping Plugin Interface\nPlease remember Golang plugin's are very new and Statping plugin package may change and 'could' brake your plugin. Checkout the [statup/plugin package](https://github.com/statping-ng/statping-ng/blob/master/plugin/main.go) to see the most current interfaces.\n```go\ntype PluginActions interface {\n\tGetInfo() Info\n\tGetForm() string\n\tSetInfo(map[string]interface{}) Info\n\tRoutes() []Routing\n\tOnSave(map[string]interface{})\n\tOnFailure(map[string]interface{})\n\tOnSuccess(map[string]interface{})\n\tOnSettingsSaved(map[string]interface{})\n\tOnNewUser(map[string]interface{})\n\tOnNewService(map[string]interface{})\n\tOnUpdatedService(map[string]interface{})\n\tOnDeletedService(map[string]interface{})\n\tOnInstall(map[string]interface{})\n\tOnUninstall(map[string]interface{})\n\tOnBeforeRequest(map[string]interface{})\n\tOnAfterRequest(map[string]interface{})\n\tOnShutdown()\n\tOnLoad(sqlbuilder.Database)\n}\n```\n\n## Event Parameters\nAll event interfaces for the Statping Plugin will return a `map[string]interface{}` type, this is because the plugin package will most likely update and change in the future, but using this type will allow your plugin to continue even after updates.\n\n## Example of an Event\nKnowing what happens during an event is important for your plugin. For example, lets have an event that echo something when a service has a Failure status being issued. Checkout some example below to see how this golang plugin action works. \n\n```go\nfunc (p pkg) OnSuccess(data map[string]interface{}) {\n fmt.Println(\"Statping Example Plugin received a successful service hit! \")\n fmt.Println(\"Name: \", data[\"Name\"])\n fmt.Println(\"Domain: \", data[\"Domain\"])\n fmt.Println(\"Method: \", data[\"Method\"])\n fmt.Println(\"Latency: \", data[\"Latency\"])\n}\n```\n###### OnSuccess is fired every time a service has check it be online\n\n```go\nfunc OnFailure(service map[string]interface{}) {\n fmt.Println(\"oh no! an event is failing right now! do something!\")\n fmt.Println(service)\n}\n```\n###### OnFailure is fired every time a service is failing\n\n```go\nfunc (p pkg) OnLoad(db sqlbuilder.Database) {\n fmt.Println(\"=============================================================\")\n fmt.Printf(\" Statping Example Plugin Loaded using %v database\\n\", db.Name())\n fmt.Println(\"=============================================================\")\n}\n```\n###### OnLoad is fired after plugin is loaded into the environment\n\n\n## Interacting with Database\nThe Example Statping Plugin includes a variable `Database` that will allow you to interact with the Statping database. Checkout [database.go](https://github.com/statping/statping_plugin/blob/master/database.go) to see a full example of Create, Read, Update and then Deleting a custom Communication entry into the database.\n```go\n// Insert a new communication into database\n// once inserted, return the Communication\nfunc (c *Communication) Create() *Communication {\n\tuuid, err := CommunicationTable().Insert(c)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tc.Id = uuid.(int64)\n\treturn c\n}\n```\n\n## Custom HTTP Routes\nPlugin's can include their own HTTP route to accept GET/POST requests. Route are loaded after Statping loads all of it's Routes. Checkout [routes.go](https://github.com/statping/statping_plugin/blob/master/routes.go) on the example plugin to see a full example of how to use it.\n```go\n// You must have a Routes() method in your plugin\nfunc (p *pkg) Routes() []plugin.Routing {\n\treturn []plugin.Routing{{\n\t\tURL: \"hello\",\n\t\tMethod: \"GET\",\n\t\tHandler: CustomInfoHandler,\n\t}}\n}\n\n// This is the HTTP handler for the '/hello' URL created above\nfunc CustomInfoHandler(w http.ResponseWriter, r *http.Request) {\n\tw.WriteHeader(http.StatusOK)\n\tfmt.Fprintln(w, \"Oh Wow!!! This is cool...\")\n}\n```\n\n\n## Plugin To-Do List\n- [ ] Ability to includes assets like jpg, json, etc\n\nStatuper
\nStatping includes a simple to use installation shell script that will help you install locally, Docker, and even onto a AWS EC2 instance.\n\n\n
\n
\n\n## Installation\n```bash\ncurl -O https://assets.statup.io/statuper && chmod +x statuper\n```\n\n## Usage\n- `statuper`\n\nBuild and Test
\nBuilding from the Go Language source code is pretty easy if you already have Go installed. Clone this repo and `cd` into it. \n\n### Git n' Go Get\n```bash\ngit clone https://github.com/statping/statping.git\ncd statup\ngo get -v\n```\n\n### Install go.rice\nStatping uses go.rice to compile HTML, JS, and CSS files into it's single binary output.\n```\ngo get github.com/GeertJohan/go.rice\ngo get github.com/GeertJohan/go.rice/rice\n```\n\n### Build Statping Binary\nStatping uses go.rice to compile HTML, JS, and CSS files into it's single binary output.\n```\nrice embed-go\ngo build -o statup .\n./statup version\n```\n\n### Test Coverage\nYou can also test Statio on your localhost, but it does require a MySQL, and Postgres server to be accessible since testing does create/drop tables for multiple databases. \n```\ngo test -v\n```\n\nContributing
\nHave a feature you want to implement into Statping!? Awesome! Follow this guide to see how you can test, compile and build Statping for production use. I recommend you use `make` with this process, it will save you time and it will auto include many customized parameters to get everything working correctly.\n\n# Dependencies\nStatping has a couple of required dependencies when testing and compiling the binary. The [Makefile](https://github.com/statping-ng/statping-ng/blob/master/Makefile) will make these tasks a lot easier. Take a look at the Makefile to see what commands are ran. Run the command below to get setup right away.\n```bash\nmake dev-deps\n```\nList of requirements for compiling assets, building binary, and testing.\n- [Go Language](https://golang.org/) (currently `1.10.3`)\n- [Docker](https://docs.docker.com/)\n- [SASS](https://sass-lang.com/install)\n- [Cypress](https://www.cypress.io/) (only used for UI testing, `make cypress-install`)\n\n# Compiling Assets\nThis Golang project uses [rice](https://github.com/GeertJohan/go.rice) to compile static assets into a single file. The file `source/rice-box.go` is never committed to the Github repo, it is automatically created on build. Statping also requires `sass` to be installed on your local OS. To compile all the static assets run the command below:\n\n```bash\nmake compile\n```\nAfter this is complete, you'll notice the `source/rice-box.go` file has been generated. You can now continue to build, and test.\n\n# Testing\nStatping includes multiple ways to Test the application, you can run the `make` command, or the normal `go test` command. To see the full experience of your updates, you can even run Cypress tests which is in the `.dev/test` folder.\n\nStatping will run all tests in `cmd` folder on MySQL, Postgres, and SQLite databases. You can run `make databases` to automatically create MySQL and Postgres with Docker.\n\n###### Go Unit Testing:\n```bash\nmake test\n```\n\n###### Cypress UI Testing:\n```bash\nmake cypress-test\n```\n\n###### Test Everything:\n```bash\nmake test-all\n```\n\n# Build\nStatping will build on all operating systems except Windows 32-bit. I personally use [xgo](https://github.com/karalabe/xgo) to cross-compile on multiple systems using Docker. Follow the commands below to build on your local system.\n\n###### Build for local operating system:\n```bash\nmake build\n```\n\n# Compile for Production\nOnce you've tested and built locally, you can compile Statping for all available operating systems using the command below. This command will require you to have Docker.\n\n```bash\nmake build-all\n```\n\n# What Now\nEverything tested, compiled and worked out!? Awesome! 💃 You can now commit your changes, and submit a Pull Request with the features/bugs you added or removed.\n\n\n\n\n\nPGP Signature
\nYou can check if the Statping binary you downloaded is authentic by running a few commands.\n\n### Steps to Authenticate\n1. Download the Statping `tar.gz` file from [Latest Releases](https://github.com/statping-ng/statping-ng/releases/latest) and extract the `statping` binary and the `statup.asc` file.\n2. Run command: `gpg --verify statping.asc`\n3. You should see `Good signature from \"Hunter Long \" [ultimate]`.\n\n# Statping Public Key\n- [https://statping.com/statping.gpg](https://statping.com/statping.gpg)\n\nYou can also download the key with the command below:\n```\nwget https://statping.com/statping.gpg\n```\n\n###### `statping.gpg`\n```\n-----BEGIN PGP PUBLIC KEY BLOCK-----\n\nmQINBFwGUYIBEADNsDY4aUOx8EoZuTRFPtjuadJzFRyKtHhw/tLlAnoFACanZPIT\nNZoRYvRR5v6lMDXdxsteDbJEOhZ1WDiKIr4OyMahPsyyH6ULzSBKgePUswa0sDef\nUnXYzPFQCzqQyQQFbp9AYfDP7dW6dTL9I6qU2NqlJvjxJiiZTAq87SmsLqHiASnI\n+ottnQuu6vJQBJz2PFIuaS1c3js/+HBbth9GK5B9YN1BIIyZoFmWKVU9HnJf+aM3\nUs6OLjjwYwWzQH38ZV84IjVXyiP9PQVhlCXeHK7XdhPZvnSP1m5Wszj/jowwY6Mz\nLgLotfL540X7yOJ7hJTFYLFBOtJdJr/3Ov8SH4HXdPFPVG+UqxsmtmPqUQ9iAxAE\njRFfkAxBvH5Szf2WZdaLnlrrOcOKJIIjZgHqalquBTAhlh5ul0lUVSSPxetwIBlW\n60L41k94NJFGDt8xOJ+122mLcywmQ1CzhDfeIKlxl6JDiVHjoRqlQQrqIoNZMV85\nrzGfrmbuwv1MXGBJoiNy3330ujOBmhQ9dQVwKpxhBKdjnAgIGM9szbUYxIkGgM1O\nU4b1WF3AF/9JOpKJ0LewslpM3BFFYnemGsHXAv3TBPqKidNdwMAiBOtNykGoXF6i\n0D6jOW/IB1da0gUA+kr5JdAOwIG7JXKhur2MO7Ncid59DL2N8RePRWj+jwARAQAB\ntB9IdW50ZXIgTG9uZyA8aW5mb0BzdGF0cGluZy5jb20+iQJOBBMBCAA4FiEEt21h\n+qbbdZRm6D2ZZLnGquLVUngFAlwGUYICGwMFCwkIBwIGFQoJCAsCBBYCAwECHgEC\nF4AACgkQZLnGquLVUnizwA//c7vmwTMq/8LYlbo37WM2kDE9AKIrz6VSMq4RhGbC\nLikH0X0epa+if79n9BZrVU/Af3aKTn7vu2J4XrvzcdCXtcsR0YmCWML2Y6OSFmhX\nw3o6woiFcp+SUWdcM/kithRun+j9sKV4akdgkdBQUdh/RMVln+radz1c6G59iTdh\nS+Ip3ObO7Gn5VnrLwxix+W9Jhg8YhDgDGEDt8e1yvjuMRY+WhjHFlwEMoE0kvQL8\nQvQH2dGD3dExWAuIL7+0xC0ZGU0PR8vRrq1ukdIsWlDY+42vvhcyPZKFFDTM/QLF\nFcCNiPSGhiK/NQq67xnRMFdh0fnqbydWj2atMpacIrheEkOt8db2/UMyDOwlIxgy\nKOG8x+yNKiG9LyvW4axRLctN608/+TbvtFo5TVOFJYxJQp4b5uz7LgJAJw7PBvfC\nbqx64BH8WGzgyGcAl9unQEtpDuxXoKvP2kbsS7hjvhK0gJgW9llpV4sRJJGApTBc\nWtbcS9DBGs3k1aZdA72bxnayD32syVz7czl4+tkRsbQZ4VgJh1yrHIDsdWQXFnYu\nEQJfCgX5HvvC13MpDUth0NWCFtWQirY3EFbIgSuhB/D5iXA+Dt1Dq5c1u7wQlUVi\nLQCU++oMGrlU3gZrnov5lnBGCEjn0O9bKQm8zmLdEcENFxUZvfPjOIY64YprZxD9\nBv65Ag0EXAZRggEQAMmjHmnvH8SvNJhku/oI96dFKen3bg9xdaFUD1vAuNglCalH\nwgXcCZd0RdobYNG46cXTzTQadtHS4hi/UBJ+oy5ZUpIRglW12eTYtqM2G11VbcQi\nj6rLITP9NIP+G1xBICSYK4UwmH55BolMEQ/1ZX0a9rESM9stDNglheCCudbMGR/1\nZYnufdEsh0yPwyC/1upZeu8LPWK62pt9mE/gccx77QTeDi5OJcRf1fPbUTCm3vSS\nwPPV2AGANodIhostjDymt5vh0tGwc7oUZZLnVdErfuctv7yMgZdiCpYu0jFy1NYf\nJgOpZasrcK7/1ozGzsfAo/sSU4kIkMwuWGgqfx5kGRK2CgU4T0i7oI6DMpOX9ZS8\ns3+oCWu83X0ofvm5R2CbjiUj2gR6JOhBQbJpCeTkLe+SFcUpnyrr7lG8B8QZHm5N\nnBi05V/s63RE3g/6WpR/fWuh+uswe01uqlSx9deW7jT49BL/MdSxwjfwLBLz/hLM\n0ld385XAd9bqMjUtp0XhZX2YORx3f/aKY7PYA62baGibb5RdPRw6viEAWU20eb+8\nX9Pa7hGmwUeal5lka4SD/TGl7wdY+g4oYP+jtKinH/ZftWA5wHTe3jWT5bdWrT2d\ne+0qA0SBkmKIDLpktvtTa19w2nfwBIwJ6fN36ZjYpOn/stxR7aRtnhSqvzxbABEB\nAAGJAjYEGAEIACAWIQS3bWH6ptt1lGboPZlkucaq4tVSeAUCXAZRggIbDAAKCRBk\nucaq4tVSeGWmD/9Pg1x6s98zdZCQa2apmUnuoQAQA9Gf2RBBuglCDGsY67wbvdHZ\n9wdFRs2QEhl2O3oFmidxthBOBRl9z62nXliLwNn1Lcy/yDfaB8wH6gMm4jn2N/z9\nvQXnyIzg8m4PItZ1p5mnY3qH5lpGF8r9Gb7tzK10rqulM2XTDojZOevlEGI6LGw8\nFjccXtNquqGZwxzytmKF3T7UBmpmt2qock8N5iJn987m6WeYmbFNc0ii0guHfdtO\nzQcItz2ngCdyvfgQPwCAoAv72ysSGhz5KZgAXRrEdcqj6Jw3ivoEUKq1aUrYncXQ\n3zC3ED6AjWOGRzjvTZzj22IVacUZ0gqx0x/oldXLOhMB9u6nFXHKj1n9nc0XHMNi\nLp9EuvQgcNLjFZGE9sxh25u9V+OhItfT/aarYEu/Xq0IkUUcdz4GehXth1/Cq1wH\nlSUie4nCs7I7OWhqMNClqP7ywElDXsQ66MCgvf01Dh64YUVjJNnyyK0QiYlCx/JQ\nZ85hNLtVXZfYqC5BRZlVFp8I8Rs2Qos9YEgn2M22+Rj+RIeD74LZFB7Q4myRvTMB\n/P466dFI83KYhwvjBYOP3jPTrV7Ky8poEGifQp2mM294CFIPS7z0z7a8+yMzcsRP\nOluFxewsEO0QNDrfFb+0gnjYlnGqOFcZjUMXbDdY5oLSPtXohynuTK1qyQ==\n=Xn0G\n-----END PGP PUBLIC KEY BLOCK-----\n```\n\nTesting
\nIf you want to test your updates with the current golang testing units, you can follow the guide below to run a full test process. Each test for Statping will run in MySQL, Postgres, and SQlite to make sure all database types work correctly.\n\n## Create Docker Databases\nThe easiest way to run the tests on all 3 databases is by starting temporary databases servers with Docker. Docker is available for Linux, Mac and Windows. You can download/install it by going to the [Docker Installation](https://docs.docker.com/install/) site.\n\n```go\ndocker run -it -d \\\n -p 3306:3306 \\\n -env MYSQL_ROOT_PASSWORD=password123 \\\n -env MYSQL_DATABASE=root mysql\n```\n\n```go\ndocker run -it -d \\\n -p 5432:5432 \\\n -env POSTGRES_PASSWORD=password123 \\\n -env POSTGRES_USER=root \\\n -env POSTGRES_DB=root postgres\n```\n\nOnce you have MySQL and Postgres running, you can begin the testing. SQLite database will automatically create a `statup.db` file and will delete after testing.\n\n## Run Tests\nInsert the database environment variables to auto connect the the databases and run the normal test command: `go test -v`. You'll see a verbose output of each test. If all tests pass, make a push request! 💃\n```go\nDB_DATABASE=root \\\n DB_USER=root \\\n DB_PASS=password123 \\\n DB_HOST=localhost \\\n go test -v\n```\n\nDeployment
\nStatping is a pretty cool server for monitoring your services. The way we deploy might be a little cooler though. Statping is using the most bleeding edge technology to release updates and distribute binary files automatically.\n\n1. Source code commits get pushed to Github\n2. [Rice](https://github.com/GeertJohan/go.rice) will compile all the static assets into 1 file (rice-box.go in source)\n3. SASS will generate a compiled version of the CSS. \n4. Statping Help page is generated by cloning the Wiki repo using `go generate`.\n5. Travis-CI tests the Golang application.\n6. Travis-CI tests the Statping API using [Postman](https://github.com/statping-ng/statping-ng/blob/master/source/tmpl/postman.json).\n7. If all tests are successful, Travis-CI will compile the binaries using [xgo](https://github.com/karalabe/xgo).\n8. Binaries are code signed using the official [PGP key](https://github.com/statping-ng/statping-ng/wiki/PGP-Signature) and compressed.\n9. [Docker](https://cloud.docker.com/repository/docker/hunterlong/statping/builds) receives a trigger to build for the `latest` tag.\n10. Travis-CI uploads the [latest release](https://github.com/statping-ng/statping-ng/releases) as a tagged version on Github.\n11. Travis-CI updates the [homebrew-statping](https://github.com/hunterlong/homebrew-statping) repo with the latest version.\n\nAnd that's it! Statping is ready to be shipped and installed.\n\n")
diff --git a/types/checkins/checkins_test.go b/types/checkins/checkins_test.go
index 8ca98e6e..14f701ad 100644
--- a/types/checkins/checkins_test.go
+++ b/types/checkins/checkins_test.go
@@ -1,9 +1,9 @@
package checkins
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/failures"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/types/checkins/database.go b/types/checkins/database.go
index 48554e01..e4464d85 100644
--- a/types/checkins/database.go
+++ b/types/checkins/database.go
@@ -1,9 +1,9 @@
package checkins
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/metrics"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/metrics"
+ "github.com/statping-ng/statping-ng/utils"
)
var db database.Database
diff --git a/types/checkins/failures.go b/types/checkins/failures.go
index 78d23970..1aded802 100644
--- a/types/checkins/failures.go
+++ b/types/checkins/failures.go
@@ -1,7 +1,7 @@
package checkins
import (
- "github.com/statping/statping/types/failures"
+ "github.com/statping-ng/statping-ng/types/failures"
"time"
)
diff --git a/types/checkins/methods.go b/types/checkins/methods.go
index 8e1054a7..8befde9a 100644
--- a/types/checkins/methods.go
+++ b/types/checkins/methods.go
@@ -2,7 +2,7 @@ package checkins
import (
"fmt"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"time"
)
diff --git a/types/checkins/routine.go b/types/checkins/routine.go
index 89bd7c62..7f79c34b 100644
--- a/types/checkins/routine.go
+++ b/types/checkins/routine.go
@@ -2,8 +2,8 @@ package checkins
import (
"fmt"
- "github.com/statping/statping/types/failures"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/utils"
"time"
)
diff --git a/types/checkins/samples.go b/types/checkins/samples.go
index a239804e..a68fdba3 100644
--- a/types/checkins/samples.go
+++ b/types/checkins/samples.go
@@ -1,7 +1,7 @@
package checkins
import (
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"time"
)
diff --git a/types/checkins/struct.go b/types/checkins/struct.go
index 44292598..b75e2964 100644
--- a/types/checkins/struct.go
+++ b/types/checkins/struct.go
@@ -1,7 +1,7 @@
package checkins
import (
- "github.com/statping/statping/types/failures"
+ "github.com/statping-ng/statping-ng/types/failures"
"time"
)
diff --git a/types/configs/config_test.go b/types/configs/config_test.go
index ff5da88f..79355661 100644
--- a/types/configs/config_test.go
+++ b/types/configs/config_test.go
@@ -1,7 +1,7 @@
package configs
import (
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/types/configs/configs_form.go b/types/configs/configs_form.go
index 0f78e980..f7856b63 100644
--- a/types/configs/configs_form.go
+++ b/types/configs/configs_form.go
@@ -2,7 +2,7 @@ package configs
import (
"github.com/pkg/errors"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"net/http"
"strconv"
)
diff --git a/types/configs/connection.go b/types/configs/connection.go
index 1067b068..295f7300 100644
--- a/types/configs/connection.go
+++ b/types/configs/connection.go
@@ -4,19 +4,19 @@ import (
"fmt"
"github.com/jinzhu/gorm"
"github.com/pkg/errors"
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/checkins"
- "github.com/statping/statping/types/core"
- "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/null"
- "github.com/statping/statping/types/services"
- "github.com/statping/statping/types/users"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/checkins"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/groups"
+ "github.com/statping-ng/statping-ng/types/hits"
+ "github.com/statping-ng/statping-ng/types/incidents"
+ "github.com/statping-ng/statping-ng/types/messages"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/types/users"
+ "github.com/statping-ng/statping-ng/utils"
"time"
)
diff --git a/types/configs/database.go b/types/configs/database.go
index 4841f49a..6d5f4c38 100644
--- a/types/configs/database.go
+++ b/types/configs/database.go
@@ -3,18 +3,18 @@ package configs
import (
"fmt"
"github.com/pkg/errors"
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/checkins"
- "github.com/statping/statping/types/core"
- "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"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/checkins"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/groups"
+ "github.com/statping-ng/statping-ng/types/hits"
+ "github.com/statping-ng/statping-ng/types/incidents"
+ "github.com/statping-ng/statping-ng/types/messages"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/types/users"
+ "github.com/statping-ng/statping-ng/utils"
"gopkg.in/yaml.v2"
"os"
)
diff --git a/types/configs/file.go b/types/configs/file.go
index 87ff21e6..11133435 100644
--- a/types/configs/file.go
+++ b/types/configs/file.go
@@ -2,7 +2,7 @@ package configs
import (
"github.com/pkg/errors"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"os"
"path/filepath"
"strings"
diff --git a/types/configs/latest_sql.go b/types/configs/latest_sql.go
index 7ae6f02b..eb1ec40b 100644
--- a/types/configs/latest_sql.go
+++ b/types/configs/latest_sql.go
@@ -2,7 +2,7 @@ package configs
import (
"fmt"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"os"
)
diff --git a/types/configs/load.go b/types/configs/load.go
index bc8db59f..54c9cc06 100644
--- a/types/configs/load.go
+++ b/types/configs/load.go
@@ -2,7 +2,7 @@ package configs
import (
"errors"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"gopkg.in/yaml.v2"
"os"
)
diff --git a/types/configs/methods.go b/types/configs/methods.go
index b0e549f3..a3c5d2f0 100644
--- a/types/configs/methods.go
+++ b/types/configs/methods.go
@@ -2,7 +2,7 @@ package configs
import (
"fmt"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"gopkg.in/yaml.v2"
)
diff --git a/types/configs/migration.go b/types/configs/migration.go
index 1a3704f4..d0c9506d 100644
--- a/types/configs/migration.go
+++ b/types/configs/migration.go
@@ -6,19 +6,19 @@ import (
_ "github.com/jinzhu/gorm/dialects/postgres"
_ "github.com/mattn/go-sqlite3"
"github.com/pkg/errors"
- "github.com/statping/statping/source"
- "github.com/statping/statping/types/notifications"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/source"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/utils"
- "github.com/statping/statping/types/checkins"
- "github.com/statping/statping/types/core"
- "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/services"
- "github.com/statping/statping/types/users"
+ "github.com/statping-ng/statping-ng/types/checkins"
+ "github.com/statping-ng/statping-ng/types/core"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/groups"
+ "github.com/statping-ng/statping-ng/types/hits"
+ "github.com/statping-ng/statping-ng/types/incidents"
+ "github.com/statping-ng/statping-ng/types/messages"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/types/users"
)
func (d *DbConfig) ResetCore() error {
diff --git a/types/configs/struct.go b/types/configs/struct.go
index 2917b5e7..0c6a2389 100644
--- a/types/configs/struct.go
+++ b/types/configs/struct.go
@@ -1,6 +1,6 @@
package configs
-import "github.com/statping/statping/database"
+import "github.com/statping-ng/statping-ng/database"
const SqliteFilename = "statping.db"
diff --git a/types/core/database.go b/types/core/database.go
index b5fec30f..0857d191 100644
--- a/types/core/database.go
+++ b/types/core/database.go
@@ -2,10 +2,10 @@ package core
import (
"github.com/pkg/errors"
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/metrics"
- "github.com/statping/statping/types/null"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/metrics"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/utils"
)
var db database.Database
diff --git a/types/core/samples.go b/types/core/samples.go
index 48d80922..022a0b26 100644
--- a/types/core/samples.go
+++ b/types/core/samples.go
@@ -1,8 +1,8 @@
package core
import (
- "github.com/statping/statping/types/null"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/utils"
)
func Example() *Core {
diff --git a/types/core/struct.go b/types/core/struct.go
index fdb0cd7c..2940f3d3 100644
--- a/types/core/struct.go
+++ b/types/core/struct.go
@@ -1,8 +1,8 @@
package core
import (
- "github.com/statping/statping/types/null"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/utils"
"time"
)
diff --git a/types/failures/database.go b/types/failures/database.go
index 0a67dc3b..4a1d755b 100644
--- a/types/failures/database.go
+++ b/types/failures/database.go
@@ -1,8 +1,8 @@
package failures
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/metrics"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/metrics"
)
var db database.Database
diff --git a/types/failures/failures_test.go b/types/failures/failures_test.go
index 884bb6d4..ad084d5b 100644
--- a/types/failures/failures_test.go
+++ b/types/failures/failures_test.go
@@ -1,8 +1,8 @@
package failures
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/require"
"testing"
)
diff --git a/types/failures/interface.go b/types/failures/interface.go
index 44295f00..f1662563 100644
--- a/types/failures/interface.go
+++ b/types/failures/interface.go
@@ -2,7 +2,7 @@ package failures
import (
"fmt"
- "github.com/statping/statping/database"
+ "github.com/statping-ng/statping-ng/database"
"time"
)
diff --git a/types/failures/samples.go b/types/failures/samples.go
index 55e67c1d..dd43e906 100644
--- a/types/failures/samples.go
+++ b/types/failures/samples.go
@@ -2,8 +2,8 @@ package failures
import (
"fmt"
- "github.com/statping/statping/types"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types"
+ "github.com/statping-ng/statping-ng/utils"
gormbulk "github.com/t-tiger/gorm-bulk-insert/v2"
"time"
)
diff --git a/types/groups/database.go b/types/groups/database.go
index 6523e2b9..9c42c1d8 100644
--- a/types/groups/database.go
+++ b/types/groups/database.go
@@ -1,10 +1,10 @@
package groups
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/errors"
- "github.com/statping/statping/types/metrics"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/metrics"
+ "github.com/statping-ng/statping-ng/utils"
"sort"
)
diff --git a/types/groups/groups_test.go b/types/groups/groups_test.go
index 99030847..2aad7645 100644
--- a/types/groups/groups_test.go
+++ b/types/groups/groups_test.go
@@ -1,10 +1,10 @@
package groups
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/null"
- "github.com/statping/statping/types/services"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/services"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/types/groups/samples.go b/types/groups/samples.go
index 257913a6..9457c158 100644
--- a/types/groups/samples.go
+++ b/types/groups/samples.go
@@ -1,7 +1,7 @@
package groups
import (
- "github.com/statping/statping/types/null"
+ "github.com/statping-ng/statping-ng/types/null"
)
func Samples() error {
diff --git a/types/groups/struct.go b/types/groups/struct.go
index c99febd0..c9eac145 100644
--- a/types/groups/struct.go
+++ b/types/groups/struct.go
@@ -1,7 +1,7 @@
package groups
import (
- "github.com/statping/statping/types/null"
+ "github.com/statping-ng/statping-ng/types/null"
"time"
)
diff --git a/types/hits/database.go b/types/hits/database.go
index 5c3ce19f..a74af92b 100644
--- a/types/hits/database.go
+++ b/types/hits/database.go
@@ -1,9 +1,9 @@
package hits
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/metrics"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/metrics"
+ "github.com/statping-ng/statping-ng/utils"
)
var log = utils.Log
diff --git a/types/hits/interface.go b/types/hits/interface.go
index 3604ca6b..9326c312 100644
--- a/types/hits/interface.go
+++ b/types/hits/interface.go
@@ -2,7 +2,7 @@ package hits
import (
"fmt"
- "github.com/statping/statping/database"
+ "github.com/statping-ng/statping-ng/database"
"time"
)
diff --git a/types/hits/samples.go b/types/hits/samples.go
index 2bbb4a97..d9393fe1 100644
--- a/types/hits/samples.go
+++ b/types/hits/samples.go
@@ -5,8 +5,8 @@ import (
_ "github.com/jinzhu/gorm/dialects/mysql"
_ "github.com/jinzhu/gorm/dialects/postgres"
_ "github.com/mattn/go-sqlite3"
- "github.com/statping/statping/types"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types"
+ "github.com/statping-ng/statping-ng/utils"
gormbulk "github.com/t-tiger/gorm-bulk-insert/v2"
"time"
)
diff --git a/types/incidents/database.go b/types/incidents/database.go
index 7260cb61..59025f25 100644
--- a/types/incidents/database.go
+++ b/types/incidents/database.go
@@ -1,10 +1,10 @@
package incidents
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/errors"
- "github.com/statping/statping/types/metrics"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/metrics"
+ "github.com/statping-ng/statping-ng/utils"
)
var (
diff --git a/types/incidents/incidents_test.go b/types/incidents/incidents_test.go
index 49245277..259cee63 100644
--- a/types/incidents/incidents_test.go
+++ b/types/incidents/incidents_test.go
@@ -1,8 +1,8 @@
package incidents
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/types/incidents/samples.go b/types/incidents/samples.go
index 7096eae7..1cc885c8 100644
--- a/types/incidents/samples.go
+++ b/types/incidents/samples.go
@@ -1,7 +1,7 @@
package incidents
import (
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"time"
)
diff --git a/types/messages/database.go b/types/messages/database.go
index 4abf14bd..a74477ad 100644
--- a/types/messages/database.go
+++ b/types/messages/database.go
@@ -1,9 +1,9 @@
package messages
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/errors"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/utils"
)
var (
diff --git a/types/messages/hooks.go b/types/messages/hooks.go
index cfc303fe..17a968c3 100644
--- a/types/messages/hooks.go
+++ b/types/messages/hooks.go
@@ -1,8 +1,8 @@
package messages
import (
- "github.com/statping/statping/types/errors"
- "github.com/statping/statping/types/metrics"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/metrics"
)
func (m *Message) Validate() error {
diff --git a/types/messages/messages_test.go b/types/messages/messages_test.go
index d1fbdea0..99ee0183 100644
--- a/types/messages/messages_test.go
+++ b/types/messages/messages_test.go
@@ -1,8 +1,8 @@
package messages
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/types/messages/struct.go b/types/messages/struct.go
index cadf3cf1..3afae31e 100644
--- a/types/messages/struct.go
+++ b/types/messages/struct.go
@@ -1,7 +1,7 @@
package messages
import (
- "github.com/statping/statping/types/null"
+ "github.com/statping-ng/statping-ng/types/null"
"time"
)
diff --git a/types/notifications/database.go b/types/notifications/database.go
index 37c5779a..347bd5d3 100644
--- a/types/notifications/database.go
+++ b/types/notifications/database.go
@@ -1,7 +1,7 @@
package notifications
import (
- "github.com/statping/statping/database"
+ "github.com/statping-ng/statping-ng/database"
)
var (
diff --git a/types/notifications/hooks.go b/types/notifications/hooks.go
index 756a7cf0..808d3774 100644
--- a/types/notifications/hooks.go
+++ b/types/notifications/hooks.go
@@ -1,7 +1,7 @@
package notifications
import (
- "github.com/statping/statping/types/metrics"
+ "github.com/statping-ng/statping-ng/types/metrics"
)
func (n *Notification) AfterFind() (err error) {
diff --git a/types/notifications/methods.go b/types/notifications/methods.go
index 805d6ee3..1c76f17f 100644
--- a/types/notifications/methods.go
+++ b/types/notifications/methods.go
@@ -2,7 +2,7 @@ package notifications
import (
"fmt"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"strings"
"time"
)
diff --git a/types/notifications/struct.go b/types/notifications/struct.go
index c273155a..b9f0c7f5 100644
--- a/types/notifications/struct.go
+++ b/types/notifications/struct.go
@@ -2,8 +2,8 @@ package notifications
import (
"github.com/sirupsen/logrus"
- "github.com/statping/statping/types/null"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/utils"
"time"
)
diff --git a/types/notifier/interface.go b/types/notifier/interface.go
index 2f84d2d0..7f1603a7 100644
--- a/types/notifier/interface.go
+++ b/types/notifier/interface.go
@@ -1,8 +1,8 @@
package notifier
import (
- "github.com/statping/statping/types/failures"
- "github.com/statping/statping/types/services"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/services"
)
// Notifier interface is required to create a new Notifier
diff --git a/types/services/database.go b/types/services/database.go
index 8ae003ce..044842a9 100644
--- a/types/services/database.go
+++ b/types/services/database.go
@@ -2,10 +2,10 @@ package services
import (
"fmt"
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/errors"
- "github.com/statping/statping/types/metrics"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/metrics"
+ "github.com/statping-ng/statping-ng/utils"
"sort"
)
diff --git a/types/services/failures.go b/types/services/failures.go
index 8bb38a55..13f670d1 100644
--- a/types/services/failures.go
+++ b/types/services/failures.go
@@ -2,7 +2,7 @@ package services
import (
"fmt"
- "github.com/statping/statping/types/failures"
+ "github.com/statping-ng/statping-ng/types/failures"
"strings"
"time"
)
diff --git a/types/services/hits.go b/types/services/hits.go
index 789027d7..1a2e3d2f 100644
--- a/types/services/hits.go
+++ b/types/services/hits.go
@@ -1,7 +1,7 @@
package services
import (
- "github.com/statping/statping/types/hits"
+ "github.com/statping-ng/statping-ng/types/hits"
"time"
)
diff --git a/types/services/methods.go b/types/services/methods.go
index 18a71e19..e0372659 100644
--- a/types/services/methods.go
+++ b/types/services/methods.go
@@ -6,11 +6,11 @@ import (
"crypto/x509"
"encoding/hex"
"fmt"
- "github.com/statping/statping/types"
- "github.com/statping/statping/types/errors"
- "github.com/statping/statping/types/failures"
- "github.com/statping/statping/types/hits"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/hits"
+ "github.com/statping-ng/statping-ng/utils"
"io/ioutil"
"sort"
"strconv"
diff --git a/types/services/notifications.go b/types/services/notifications.go
index 352df55e..f8ee67b1 100644
--- a/types/services/notifications.go
+++ b/types/services/notifications.go
@@ -1,9 +1,9 @@
package services
import (
- "github.com/statping/statping/types/failures"
- "github.com/statping/statping/types/notifications"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/utils"
)
func AddNotifier(n ServiceNotifier) {
diff --git a/types/services/notifier.go b/types/services/notifier.go
index f2ac7d62..685ca6be 100644
--- a/types/services/notifier.go
+++ b/types/services/notifier.go
@@ -1,8 +1,8 @@
package services
import (
- "github.com/statping/statping/types/failures"
- "github.com/statping/statping/types/notifications"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
)
var (
diff --git a/types/services/routine.go b/types/services/routine.go
index 50468945..fe28c416 100644
--- a/types/services/routine.go
+++ b/types/services/routine.go
@@ -13,13 +13,13 @@ import (
"time"
"github.com/prometheus/client_golang/prometheus"
- "github.com/statping/statping/types/metrics"
+ "github.com/statping-ng/statping-ng/types/metrics"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
- "github.com/statping/statping/types/failures"
- "github.com/statping/statping/types/hits"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/hits"
+ "github.com/statping-ng/statping-ng/utils"
healthpb "google.golang.org/grpc/health/grpc_health_v1"
)
diff --git a/types/services/routine_test.go b/types/services/routine_test.go
index 92f1035c..0a4d7dfd 100644
--- a/types/services/routine_test.go
+++ b/types/services/routine_test.go
@@ -7,7 +7,7 @@ import (
"strings"
"testing"
- "github.com/statping/statping/types/null"
+ "github.com/statping-ng/statping-ng/types/null"
"google.golang.org/grpc"
"google.golang.org/grpc/health"
healthpb "google.golang.org/grpc/health/grpc_health_v1"
diff --git a/types/services/samples.go b/types/services/samples.go
index 1ed482b4..00ba242e 100644
--- a/types/services/samples.go
+++ b/types/services/samples.go
@@ -1,8 +1,8 @@
package services
import (
- "github.com/statping/statping/types/null"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/utils"
"time"
)
diff --git a/types/services/services_test.go b/types/services/services_test.go
index 637e2088..43b2d94e 100644
--- a/types/services/services_test.go
+++ b/types/services/services_test.go
@@ -4,15 +4,15 @@ import (
"context"
"crypto/tls"
"github.com/gorilla/mux"
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/checkins"
- "github.com/statping/statping/types/failures"
- "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/null"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/checkins"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/hits"
+ "github.com/statping-ng/statping-ng/types/incidents"
+ "github.com/statping-ng/statping-ng/types/messages"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"google.golang.org/grpc"
diff --git a/types/services/services_test_alerts_test.go b/types/services/services_test_alerts_test.go
index f1111f56..098add78 100644
--- a/types/services/services_test_alerts_test.go
+++ b/types/services/services_test_alerts_test.go
@@ -1,10 +1,10 @@
package services
import (
- "github.com/statping/statping/types/failures"
- "github.com/statping/statping/types/notifications"
- "github.com/statping/statping/types/null"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/notifications"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/types/services/struct.go b/types/services/struct.go
index ca55aaba..d08a7308 100644
--- a/types/services/struct.go
+++ b/types/services/struct.go
@@ -3,11 +3,11 @@ package services
import (
"time"
- "github.com/statping/statping/types/checkins"
- "github.com/statping/statping/types/failures"
- "github.com/statping/statping/types/incidents"
- "github.com/statping/statping/types/messages"
- "github.com/statping/statping/types/null"
+ "github.com/statping-ng/statping-ng/types/checkins"
+ "github.com/statping-ng/statping-ng/types/failures"
+ "github.com/statping-ng/statping-ng/types/incidents"
+ "github.com/statping-ng/statping-ng/types/messages"
+ "github.com/statping-ng/statping-ng/types/null"
)
// Service is the main struct for Services
diff --git a/types/services/yaml.go b/types/services/yaml.go
index 1ae32c95..26f60ee4 100644
--- a/types/services/yaml.go
+++ b/types/services/yaml.go
@@ -2,7 +2,7 @@ package services
import (
"github.com/pkg/errors"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"gopkg.in/yaml.v2"
)
diff --git a/types/users/auth.go b/types/users/auth.go
index b6ce7c6d..80f3ef07 100644
--- a/types/users/auth.go
+++ b/types/users/auth.go
@@ -2,7 +2,7 @@ package users
import (
"fmt"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/utils"
"time"
)
diff --git a/types/users/database.go b/types/users/database.go
index 3092638c..ba239ced 100644
--- a/types/users/database.go
+++ b/types/users/database.go
@@ -1,9 +1,9 @@
package users
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/metrics"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/metrics"
+ "github.com/statping-ng/statping-ng/utils"
)
var (
diff --git a/types/users/hooks.go b/types/users/hooks.go
index 956d369b..8bba6802 100644
--- a/types/users/hooks.go
+++ b/types/users/hooks.go
@@ -1,8 +1,8 @@
package users
import (
- "github.com/statping/statping/types/errors"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/types/errors"
+ "github.com/statping-ng/statping-ng/utils"
)
func (u *User) Validate() error {
diff --git a/types/users/sample.go b/types/users/sample.go
index 1e6b455c..aa80c685 100644
--- a/types/users/sample.go
+++ b/types/users/sample.go
@@ -1,7 +1,7 @@
package users
import (
- "github.com/statping/statping/types/null"
+ "github.com/statping-ng/statping-ng/types/null"
)
func Samples() error {
diff --git a/types/users/struct.go b/types/users/struct.go
index 07138969..06476f08 100644
--- a/types/users/struct.go
+++ b/types/users/struct.go
@@ -1,7 +1,7 @@
package users
import (
- "github.com/statping/statping/types/null"
+ "github.com/statping-ng/statping-ng/types/null"
"time"
)
diff --git a/types/users/users_test.go b/types/users/users_test.go
index 6aa2cb20..7cba3b0e 100644
--- a/types/users/users_test.go
+++ b/types/users/users_test.go
@@ -1,9 +1,9 @@
package users
import (
- "github.com/statping/statping/database"
- "github.com/statping/statping/types/null"
- "github.com/statping/statping/utils"
+ "github.com/statping-ng/statping-ng/database"
+ "github.com/statping-ng/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/utils"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"testing"
diff --git a/utils/log.go b/utils/log.go
index bc959a2d..e07d749b 100644
--- a/utils/log.go
+++ b/utils/log.go
@@ -5,7 +5,7 @@ import (
"github.com/fatih/structs"
"github.com/getsentry/sentry-go"
Logger "github.com/sirupsen/logrus"
- "github.com/adamboutcher/statping-ng/types/null"
+ "github.com/statping-ng/statping-ng/types/null"
"gopkg.in/natefinch/lumberjack.v2"
"io"
"os"
diff --git a/utils/utils.go b/utils/utils.go
index ec3cd748..8338a46e 100644
--- a/utils/utils.go
+++ b/utils/utils.go
@@ -17,7 +17,7 @@ import (
"sync"
"time"
- "github.com/adamboutcher/statping-ng/types/metrics"
+ "github.com/statping-ng/statping-ng/types/metrics"
)
var (