Moved from adamboutcher to org statping-ng

pull/1045/head
Adam Boutcher 2021-08-13 12:30:49 +01:00
parent bc0b7583c6
commit e8edf46e6b
142 changed files with 562 additions and 562 deletions

View File

@ -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)

View File

@ -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/

View File

@ -3,7 +3,7 @@
</p>
<p align="center">
<b>Statping-ng - Web and App Status Monitoring for Any Type of Project</b><br>
<a href="https://github.com/adamboutcher/statping-ng/wiki">View Wiki</a> | <a href="https://demo.statping.com">Demo</a> | <a href="https://itunes.apple.com/us/app/apple-store/id1445513219">iPhone</a> | <a href="https://play.google.com/store/apps/details?id=com.statping">Android</a> <br> <a href="http://docs.statping.com">API</a> | <a href="https://github.com/adamboutcher/statping-ng/wiki/Docker">Docker</a> | <a href="https://github.com/adamboutcher/statping-ng/wiki/AWS-EC2">EC2</a> | <a href="https://github.com/adamboutcher/statping-ng/wiki/Mac">Mac</a> | <a href="https://github.com/adamboutcher/statping-ng/wiki/Linux">Linux</a> | <a href="https://github.com/adamboutcher/statping-ng/wiki/Windows">Windows</a>
<a href="https://github.com/statping-ng/statping-ng/wiki">View Wiki</a> | <a href="https://demo.statping.com">Demo</a> | <a href="https://itunes.apple.com/us/app/apple-store/id1445513219">iPhone</a> | <a href="https://play.google.com/store/apps/details?id=com.statping">Android</a> <br> <a href="http://docs.statping.com">API</a> | <a href="https://github.com/statping-ng/statping-ng/wiki/Docker">Docker</a> | <a href="https://github.com/statping-ng/statping-ng/wiki/AWS-EC2">EC2</a> | <a href="https://github.com/statping-ng/statping-ng/wiki/Mac">Mac</a> | <a href="https://github.com/statping-ng/statping-ng/wiki/Linux">Linux</a> | <a href="https://github.com/statping-ng/statping-ng/wiki/Windows">Windows</a>
</p>
# Statping-ng - Status Page & Monitoring Server
@ -25,9 +25,9 @@ Statping-ng strives to remain future-proof and remain intact if a failure is cre
Statping-ng is built in Go Language so all you need is the precompile binary based on your operating system. You won't need to install anything extra once you have the Statping binary installed. You can even run Statping on a Raspberry Pi.
<br><br>
<p align="center">
<a href="https://github.com/adamboutcher/statping-ng/wiki/Linux"><img width="5%" src="https://img.cjx.io/linux.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://github.com/adamboutcher/statping-ng/wiki/Mac"><img width="5%" src="https://img.cjx.io/apple.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://github.com/adamboutcher/statping-ng/wiki/Windows"><img width="5%" src="https://img.cjx.io/windows.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://github.com/statping-ng/statping-ng/wiki/Linux"><img width="5%" src="https://img.cjx.io/linux.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://github.com/statping-ng/statping-ng/wiki/Mac"><img width="5%" src="https://img.cjx.io/apple.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://github.com/statping-ng/statping-ng/wiki/Windows"><img width="5%" src="https://img.cjx.io/windows.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://play.google.com/store/apps/details?id=com.statping"><img width="5%" src="https://img.cjx.io/android.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://itunes.apple.com/us/app/apple-store/id1445513219"><img width="5%" src="https://img.cjx.io/appstore.png"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="https://hub.docker.com/r/statping/statping"><img width="5%" src="https://img.cjx.io/dockericon.png"></a>
@ -65,7 +65,7 @@ Statping-ng includes email notification via SMTP and Slack integration using [In
<br><br><br><br>
<h2>User Created Notifiers</h2>
View the [Plugin Wiki](https://github.com/adamboutcher/statping-ng/wiki/Statping-Plugins) to see detailed information about Golang Plugins. Statping-ng isn't just another Status Page for your applications, it's a framework that allows you to create your own plugins to interact with every element of your status page. [Notifier's](https://github.com/adamboutcher/statping-ng/wiki/Notifiers) can also be create with only 1 golang file.
View the [Plugin Wiki](https://github.com/statping-ng/statping-ng/wiki/Statping-Plugins) to see detailed information about Golang Plugins. Statping-ng isn't just another Status Page for your applications, it's a framework that allows you to create your own plugins to interact with every element of your status page. [Notifier's](https://github.com/statping-ng/statping-ng/wiki/Notifiers) can also be create with only 1 golang file.
<br><br><br><br>
<img align="center" width="100%" height="250" src="https://img.cjx.io/statupsc2.png">
@ -78,7 +78,7 @@ Having a straight forward dashboard makes Statping-ng that much better. Monitor
<br><br><br><br>
## Run on Docker
Use the [Statping Docker Image](https://hub.docker.com/r/statping/statping) to create a status page in seconds. Checkout the [Docker Wiki](https://github.com/adamboutcher/statping-ng/wiki/Docker) to view more details on how to get started using Docker.
Use the [Statping Docker Image](https://hub.docker.com/r/statping/statping) to create a status page in seconds. Checkout the [Docker Wiki](https://github.com/statping-ng/statping-ng/wiki/Docker) to view more details on how to get started using Docker.
```bash
docker run -it -p 8080:8080 statping/statping
```
@ -103,7 +103,7 @@ Once your instance has started, it will take a moment to get your SSL certificat
<br><br><br><br>
## Prometheus Exporter
Statping-ng includes a [Prometheus Exporter](https://github.com/adamboutcher/statping-ng/wiki/Prometheus-Exporter) so you can have even more monitoring power with your services. The Prometheus exporter can be seen on `/metrics`, simply create another exporter in your prometheus config. Use your Statping-ng API Secret for the Authorization Bearer header, the `/metrics` URL is dedicated for Prometheus and requires the correct API Secret has `Authorization` header.
Statping-ng includes a [Prometheus Exporter](https://github.com/statping-ng/statping-ng/wiki/Prometheus-Exporter) so you can have even more monitoring power with your services. The Prometheus exporter can be seen on `/metrics`, simply create another exporter in your prometheus config. Use your Statping-ng API Secret for the Authorization Bearer header, the `/metrics` URL is dedicated for Prometheus and requires the correct API Secret has `Authorization` header.
```yaml
scrape_configs:
- job_name: 'statping'
@ -114,9 +114,9 @@ scrape_configs:
<br><br><br><br>
## Contributing
Statping-ng accepts Push Requests to the `dev` branch! Feel free to add your own features and notifiers. You probably want to checkout the [Notifier Wiki](https://github.com/adamboutcher/statping-ng/wiki/Notifiers) to get a better understanding on how to create your own notification methods for failing/successful services. Testing on Statping-ng will test each function on MySQL, Postgres, and SQLite. I recommend running MySQL and Postgres Docker containers for testing. You can find multiple docker-compose files in the dev directory.
Statping-ng accepts Push Requests to the `dev` branch! Feel free to add your own features and notifiers. You probably want to checkout the [Notifier Wiki](https://github.com/statping-ng/statping-ng/wiki/Notifiers) to get a better understanding on how to create your own notification methods for failing/successful services. Testing on Statping-ng will test each function on MySQL, Postgres, and SQLite. I recommend running MySQL and Postgres Docker containers for testing. You can find multiple docker-compose files in the dev directory.
![Dev Release](https://github.com/adamboutcher/statping-ng/workflows/Dev%20Release/badge.svg?branch=dev)
![Dev Release](https://github.com/statping-ng/statping-ng/workflows/Dev%20Release/badge.svg?branch=dev)
[![Go Report Card](https://goreportcard.com/badge/github.com/statping/statping)](https://goreportcard.com/report/github.com/statping/statping)
[![Build Status](https://travis-ci.com/statping/statping.svg?branch=master)](https://travis-ci.com/statping/statping) [![Cypress.io tests](https://img.shields.io/badge/cypress.io-tests-green.svg?style=flat-square)](https://dashboard.cypress.io/#/projects/bi8mhr/runs)
[![Docker Pulls](https://img.shields.io/docker/pulls/statping/statping.svg)](https://hub.docker.com/r/statping/statping/builds/) [![Godoc](https://godoc.org/github.com/statping/statping?status.svg)](https://godoc.org/github.com/statping/statping)[![Coverage Status](https://coveralls.io/repos/github/statping/statping/badge.svg?branch=master)](https://coveralls.io/github/statping/statping?branch=master)

View File

@ -5,12 +5,12 @@ import (
"encoding/json"
"fmt"
"github.com/pkg/errors"
"github.com/adamboutcher/statping-ng/handlers"
"github.com/adamboutcher/statping-ng/source"
"github.com/adamboutcher/statping-ng/types/configs"
"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/handlers"
"github.com/statping-ng/statping-ng/source"
"github.com/statping-ng/statping-ng/types/configs"
"github.com/statping-ng/statping-ng/types/core"
"github.com/statping-ng/statping-ng/types/services"
"github.com/statping-ng/statping-ng/utils"
"io/ioutil"
"os"
"path/filepath"

View File

@ -2,8 +2,8 @@ package main
import (
"bytes"
"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"
"github.com/stretchr/testify/require"
"io/ioutil"

View File

@ -5,7 +5,7 @@ import (
"fmt"
"github.com/pkg/errors"
"github.com/spf13/cobra"
"github.com/adamboutcher/statping-ng/utils"
"github.com/statping-ng/statping-ng/utils"
"io"
"os"
"os/exec"

View File

@ -2,7 +2,7 @@ package main
import (
"github.com/spf13/cobra"
"github.com/adamboutcher/statping-ng/utils"
"github.com/statping-ng/statping-ng/utils"
)
var (

View File

@ -3,15 +3,15 @@ package main
import (
"fmt"
"github.com/pkg/errors"
"github.com/adamboutcher/statping-ng/database"
"github.com/adamboutcher/statping-ng/handlers"
"github.com/adamboutcher/statping-ng/notifiers"
"github.com/adamboutcher/statping-ng/source"
"github.com/adamboutcher/statping-ng/types/configs"
"github.com/adamboutcher/statping-ng/types/core"
"github.com/adamboutcher/statping-ng/types/metrics"
"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/handlers"
"github.com/statping-ng/statping-ng/notifiers"
"github.com/statping-ng/statping-ng/source"
"github.com/statping-ng/statping-ng/types/configs"
"github.com/statping-ng/statping-ng/types/core"
"github.com/statping-ng/statping-ng/types/metrics"
"github.com/statping-ng/statping-ng/types/services"
"github.com/statping-ng/statping-ng/utils"
"os"
"os/signal"
"syscall"

View File

@ -4,8 +4,8 @@ import (
"database/sql"
"fmt"
"github.com/jinzhu/gorm"
"github.com/statping/statping/types/metrics"
"github.com/statping/statping/utils"
"github.com/statping-ng/statping-ng/types/metrics"
"github.com/statping-ng/statping-ng/utils"
"strings"
"time"

View File

@ -3,8 +3,8 @@ package database
import (
"errors"
"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"
"net/http"
"net/url"
"strconv"

View File

@ -2,7 +2,7 @@ package database
import (
"fmt"
"github.com/statping/statping/utils"
"github.com/statping-ng/statping-ng/utils"
"time"
_ "github.com/jinzhu/gorm/dialects/mysql"

View File

@ -7,16 +7,16 @@ services:
image: statping/statping:dev
restart: on-failure
volumes:
- ./cmd:/go/src/github.com/statping/statping/cmd/
- ./core:/go/src/github.com/statping/statping/core/
- ./database:/go/src/github.com/statping/statping/database/
- ./dev:/go/src/github.com/statping/statping/dev/
- ./frontend:/go/src/github.com/statping/statping/frontend/
- ./handlers:/go/src/github.com/statping/statping/handlers/
- ./notifiers:/go/src/github.com/statping/statping/notifiers/
- ./source:/go/src/github.com/statping/statping/source/
- ./types:/go/src/github.com/statping/statping/types/
- ./utils:/go/src/github.com/statping/statping/utils/
- ./cmd:/go/src/github.com/statping-ng/statping-ng/cmd/
- ./core:/go/src/github.com/statping-ng/statping-ng/core/
- ./database:/go/src/github.com/statping-ng/statping-ng/database/
- ./dev:/go/src/github.com/statping-ng/statping-ng/dev/
- ./frontend:/go/src/github.com/statping-ng/statping-ng/frontend/
- ./handlers:/go/src/github.com/statping-ng/statping-ng/handlers/
- ./notifiers:/go/src/github.com/statping-ng/statping-ng/notifiers/
- ./source:/go/src/github.com/statping-ng/statping-ng/source/
- ./types:/go/src/github.com/statping-ng/statping-ng/types/
- ./utils:/go/src/github.com/statping-ng/statping-ng/utils/
environment:
DB_CONN: sqlite
API_SECRET: exampleapisecret

6
dev/postman.json vendored
View File

@ -2,7 +2,7 @@
"info": {
"_postman_id": "3c6a7841-0b39-4878-a3a6-1c76832b7679",
"name": "Statping",
"description": "The Statping API allows you to programmatically access data on your Statping server.\n\nThe easiest way to get started with the API is by running your own Docker or local instance of the Statping server.\n\n<img width=\"100%\" src=\"https://img.cjx.io/statuptokenbalance.gif\">\n\n# Authentication\n\nAn API Key is required to be sent as part of every request to the Statping API, by using the `Authorization` and the API Secret Key as a header.\n\n> If you do not have an API Secret Key, you can find it on the Settings page.\n\nYou can Authenticate by implementing the following...\n- Using the `Authorization` header with API Secret Key\n- Setting `GO_ENV` to `test` to bypass all authentication\n- Adding `?api=<keyhere>` URL Query along with the API Secret Key\n- Adding `?api=<userkey>` URL Query along with the API Key for a user\n- Being logged into Statping as an admin (using JWT sessions/cookies)\n\n> Authentication will create a cookie named `statping_auth`.\n\n# Environment Variables\nStatping includes many environment variables that can give you more control over your instance. Please view the [Environment Variables Wiki](https://github.com/statping/statping/wiki/Environment-Variables) page to view a complete list. Below are a couple important ones...\n- `STATPING_DIR` - Statping's working directory. By default, this will be set to the current working directory. This path will contain the `config.yml` file, `logs`, and `assets` folder. \n- `SASS` - Absolute path to the `sass` executable. By default it will attempt to find `sass` in your `$PATH`. \n\n# Demo\nYou can checkout the Statping Demo instance at [https://demo.statping.com](https://demo.statping.com). All features are available for you to experiment with. The API Secret Key is `demoapisecret123`. Since this instance is public, it will be reset with sample data **every 90 minutes**.\n",
"description": "The Statping API allows you to programmatically access data on your Statping server.\n\nThe easiest way to get started with the API is by running your own Docker or local instance of the Statping server.\n\n<img width=\"100%\" src=\"https://img.cjx.io/statuptokenbalance.gif\">\n\n# Authentication\n\nAn API Key is required to be sent as part of every request to the Statping API, by using the `Authorization` and the API Secret Key as a header.\n\n> If you do not have an API Secret Key, you can find it on the Settings page.\n\nYou can Authenticate by implementing the following...\n- Using the `Authorization` header with API Secret Key\n- Setting `GO_ENV` to `test` to bypass all authentication\n- Adding `?api=<keyhere>` URL Query along with the API Secret Key\n- Adding `?api=<userkey>` URL Query along with the API Key for a user\n- Being logged into Statping as an admin (using JWT sessions/cookies)\n\n> Authentication will create a cookie named `statping_auth`.\n\n# Environment Variables\nStatping includes many environment variables that can give you more control over your instance. Please view the [Environment Variables Wiki](https://github.com/statping-ng/statping-ng/wiki/Environment-Variables) page to view a complete list. Below are a couple important ones...\n- `STATPING_DIR` - Statping's working directory. By default, this will be set to the current working directory. This path will contain the `config.yml` file, `logs`, and `assets` folder. \n- `SASS` - Absolute path to the `sass` executable. By default it will attempt to find `sass` in your `$PATH`. \n\n# Demo\nYou can checkout the Statping Demo instance at [https://demo.statping.com](https://demo.statping.com). All features are available for you to experiment with. The API Secret Key is `demoapisecret123`. Since this instance is public, it will be reset with sample data **every 90 minutes**.\n",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
@ -667,7 +667,7 @@
"metrics"
]
},
"description": "Point your Prometheus endpoint to `/metrics`, it will include most data from all elements including golang processes. View more information by checking out the [Prometheus Wiki](https://github.com/statping/statping/wiki/Prometheus-Exporter)."
"description": "Point your Prometheus endpoint to `/metrics`, it will include most data from all elements including golang processes. View more information by checking out the [Prometheus Wiki](https://github.com/statping-ng/statping-ng/wiki/Prometheus-Exporter)."
},
"response": [
{
@ -4650,7 +4650,7 @@
"response": []
}
],
"description": "Statping contains multiple notifiers that will send you a notification whenever a service become offline, or online. You can create your own 3rd party notifier by reading more on the [Notifiers Wiki](https://github.com/statping/statping/wiki/Notifiers) on the Github repo.",
"description": "Statping contains multiple notifiers that will send you a notification whenever a service become offline, or online. You can create your own 3rd party notifier by reading more on the [Notifiers Wiki](https://github.com/statping-ng/statping-ng/wiki/Notifiers) on the Github repo.",
"auth": {
"type": "bearer",
"bearer": [

2
doc.go
View File

@ -4,7 +4,7 @@
// Install Statping
//
// Statping is available for Mac, Linux and Windows 64x. You can download the tar.gz file or use a couple other methods. Download
// the latest release at https://github.com/adamboutcher/statping-ng/releases/latest or view below. If you're on windows, download
// the latest release at https://github.com/statping-ng/statping-ng/releases/latest or view below. If you're on windows, download
// the zip file from the latest releases link.
//
// // MacOS using homebrew

View File

@ -72,7 +72,7 @@ context('Settings Tests', () => {
cy.visit('/dashboard/settings')
cy.get('#v-pills-style-tab').click()
cy.get('#pills-vars-tab').click()
cy.get('#assets_dir').should('contain', 'github.com/statping/statping/assets')
cy.get('#assets_dir').should('contain', 'github.com/statping-ng/statping-ng/assets')
})
it('should save Local Assets', () => {

View File

@ -4,7 +4,7 @@
You can insert dynamic fields within the notifier payloads for some notifiers.
<p class="mt-2">
Checkout the <a href="https://github.com/statping/statping/blob/master/types/services/struct.go">Service struct</a> and the <a href="https://github.com/statping/statping/blob/master/types/failures/struct.go">Failures struct</a> and create variables in golang template format.
Checkout the <a href="https://github.com/statping-ng/statping-ng/blob/master/types/services/struct.go">Service struct</a> and the <a href="https://github.com/statping-ng/statping-ng/blob/master/types/failures/struct.go">Failures struct</a> and create variables in golang template format.
</p>
<p class="mt-2">

View File

@ -82,19 +82,19 @@
<p align="center">
<img alt="GitHub commit activity" src="https://img.shields.io/github/commit-activity/m/statping/statping">
<a href="https://github.com/statping/statping/labels/priority"><img src="https://img.shields.io/github/issues/statping/statping/priority?color=blue&label=priority"></a> <a href="https://github.com/statping/statping/labels/bug"><img src="https://img.shields.io/github/issues/statping/statping/bug?color=red&label=bugs"></a> <a href="https://github.com/statping/statping/labels/feature"><img src="https://img.shields.io/github/issues/statping/statping/feature?color=pink&label=features"></a>
<a href="https://github.com/statping-ng/statping-ng/labels/priority"><img src="https://img.shields.io/github/issues/statping/statping/priority?color=blue&label=priority"></a> <a href="https://github.com/statping-ng/statping-ng/labels/bug"><img src="https://img.shields.io/github/issues/statping/statping/bug?color=red&label=bugs"></a> <a href="https://github.com/statping-ng/statping-ng/labels/feature"><img src="https://img.shields.io/github/issues/statping/statping/feature?color=pink&label=features"></a>
</p>
<h1>Docker</h1>
<p>View the <a href="https://github.com/statping/statping/wiki/Docker" target="_blank">Docker Wiki</a> for more information and advanced usage.</p>
<p>View the <a href="https://github.com/statping-ng/statping-ng/wiki/Docker" target="_blank">Docker Wiki</a> for more information and advanced usage.</p>
<pre><code class="language-sh">docker run -it -p 8080:8080 statping/statping
</code></pre>
<h1>MacOSX</h1>
<p>View the <a href="https://github.com/statping/statping/wiki/Mac" target="_blank">Mac Wiki</a> for more information and other methods.</p>
<p>View the <a href="https://github.com/statping-ng/statping-ng/wiki/Mac" target="_blank">Mac Wiki</a> for more information and other methods.</p>
<pre><code class="language-sh">brew tap statping/statping
brew install statping
@ -102,7 +102,7 @@ brew install statping
<h1>Linux</h1>
<p>View the <a href="https://github.com/statping/statping/wiki/Linux" target="_blank">Linux Wiki</a> for more information and other methods.</p>
<p>View the <a href="https://github.com/statping-ng/statping-ng/wiki/Linux" target="_blank">Linux Wiki</a> for more information and other methods.</p>
<pre><code class="language-sh">curl -o- -L https://statping.com/install.sh | bash
</code></pre>
@ -114,7 +114,7 @@ brew install statping
<h1>Windows</h1>
<p>Download the <a href="https://github.com/statping/statping/releases/latest" target="_blank">latest version</a> as an <code>.exe</code> from <a href="https://github.com/statping/statping/releases/latest" target="_blank">Releases</a>. View the <a href="https://github.com/statping/statping/wiki/Windows" target="_blank">Windows Wiki</a> for more information and other methods.</p>
<p>Download the <a href="https://github.com/statping-ng/statping-ng/releases/latest" target="_blank">latest version</a> as an <code>.exe</code> from <a href="https://github.com/statping-ng/statping-ng/releases/latest" target="_blank">Releases</a>. View the <a href="https://github.com/statping-ng/statping-ng/wiki/Windows" target="_blank">Windows Wiki</a> for more information and other methods.</p>
<h1>EC2</h1>
@ -139,7 +139,7 @@ brew install statping
<h1>Plugins</h1>
<p>Statping is an awesome Status Page generator that allows you to create your own plugins with Golang Plugins! You don&rsquo;t need to request a PR or even tell us about your plugin. Plugin&rsquo;s are compiled and then send as a binary to the Statping <code>/plugins</code> folder. Test your plugins using the <code>statup test plugin</code> command, checkout the <a href="https://github.com/statping/statping/wiki/Statping-Plugins" target="_blank">Plugin Wiki</a> to see detailed information about creating plugins.</p>
<p>Statping is an awesome Status Page generator that allows you to create your own plugins with Golang Plugins! You don&rsquo;t need to request a PR or even tell us about your plugin. Plugin&rsquo;s are compiled and then send as a binary to the Statping <code>/plugins</code> folder. Test your plugins using the <code>statup test plugin</code> command, checkout the <a href="https://github.com/statping-ng/statping-ng/wiki/Statping-Plugins" target="_blank">Plugin Wiki</a> to see detailed information about creating plugins.</p>
<h1>No Maintenance</h1>
@ -151,7 +151,7 @@ brew install statping
<h1>Prometheus Exporter</h1>
<p>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 <a href="https://github.com/statping/statping/wiki/Prometheus-Exporter" target="_blank">Prometheus Exporter</a></p>
<p>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 <a href="https://github.com/statping-ng/statping-ng/wiki/Prometheus-Exporter" target="_blank">Prometheus Exporter</a></p>
</div>
</div>
@ -211,7 +211,7 @@ brew install statping
<p>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. 💃</p>
<p align="center">
<a href="https://github.com/statping/statping/wiki/Notifier-Example">Example Code</a> | <a href="https://github.com/statping/statping/wiki/Notifier-Events">Events</a> | <a href="https://github.com/statping/statping/tree/master/notifiers">View Notifiers</a></p>
<a href="https://github.com/statping-ng/statping-ng/wiki/Notifier-Example">Example Code</a> | <a href="https://github.com/statping-ng/statping-ng/wiki/Notifier-Events">Events</a> | <a href="https://github.com/statping-ng/statping-ng/tree/master/notifiers">View Notifiers</a></p>
<h2>Notifier Requirements</h2>
@ -224,7 +224,7 @@ brew install statping
<h2>Notifier Interface (required)</h2>
<p>Statping has the <code>Notifier</code> interface which you&rsquo;ll need to include in your notifier. Statping includes many other events/triggers for your notifier, checkout <a href="https://github.com/statping/statping/wiki/Notifier-Events">Notifier Events</a> to see all of them.</p>
<p>Statping has the <code>Notifier</code> interface which you&rsquo;ll need to include in your notifier. Statping includes many other events/triggers for your notifier, checkout <a href="https://github.com/statping-ng/statping-ng/wiki/Notifier-Events">Notifier Events</a> to see all of them.</p>
<pre><code class="language-go">// Notifier interface is required to create a new Notifier
type Notifier interface {
@ -305,7 +305,7 @@ type NotificationForm struct {
<h1>Adding Notifiers</h1>
<p>To add a notifier to the Statping application, simply append your Notifier in the <code>AttachNotifiers()</code> function inside of <a href="https://github.com/statping/statping/blob/master/core/core.go" target="_blank">core/core.go</a>.</p>
<p>To add a notifier to the Statping application, simply append your Notifier in the <code>AttachNotifiers()</code> function inside of <a href="https://github.com/statping-ng/statping-ng/blob/master/core/core.go" target="_blank">core/core.go</a>.</p>
<pre><code class="language-go">// AttachNotifiers will attach all the notifier's into the system
func AttachNotifiers() error {
@ -323,7 +323,7 @@ func AttachNotifiers() error {
}
</code></pre>
<h6><a href="https://github.com/statping/statping/blob/master/core/core.go#L183" target="_blank">AttachNotifiers</a></h6>
<h6><a href="https://github.com/statping-ng/statping-ng/blob/master/core/core.go#L183" target="_blank">AttachNotifiers</a></h6>
</div>
</div>
@ -339,7 +339,7 @@ func AttachNotifiers() error {
<p>Updating Statping is very simple, you can choose one of the options below:
- Run command: <code>statping update</code> (you may need to run sudo depending on your server)
- or Run command: <code>curl -o- -L https://statping.com/install.sh | bash</code>
- or download tar.gz file from <a href="https://github.com/statping/statping/releases/latest" target="_blank">Latest Releases</a> and extract for <code>statping</code>.</p>
- or download tar.gz file from <a href="https://github.com/statping-ng/statping-ng/releases/latest" target="_blank">Latest Releases</a> and extract for <code>statping</code>.</p>
<h2>Blank/White Page</h2>
@ -370,7 +370,7 @@ func AttachNotifiers() error {
<h1 class="h1 mt-5 mb-5 text-muted">Bulk Import Services</h1>
<span class="spacer"></span>
<div v-pre>
<p>You can import multiple services when Statping first loads by creating a file named <a href="https://github.com/statping/statping/wiki/services.yml" target="_blank">services.yml</a> 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 <code>services:</code> field.</p>
<p>You can import multiple services when Statping first loads by creating a file named <a href="https://github.com/statping-ng/statping-ng/wiki/services.yml" target="_blank">services.yml</a> 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 <code>services:</code> field.</p>
<h2>Dynamic Yaml</h2>
@ -428,7 +428,7 @@ services:
<h1 class="h1 mt-5 mb-5 text-muted">Environment Variables</h1>
<span class="spacer"></span>
<div v-pre>
<p>This page will list all environment variables that could be passed into Statping. You can see all default values in <a href="https://github.com/statping/statping/blob/dev/utils/env.go" target="_blank">utils/env.go</a> file under the <code>InitEnvs()</code> function.</p>
<p>This page will list all environment variables that could be passed into Statping. You can see all default values in <a href="https://github.com/statping-ng/statping-ng/blob/dev/utils/env.go" target="_blank">utils/env.go</a> file under the <code>InitEnvs()</code> function.</p>
<h3>Statping Server</h3>
@ -447,7 +447,7 @@ services:
<h3>Automatic SSL Certificate</h3>
<p>With LetsEncrypt enabled, Statping will run through the SSL process and create the SSL certs in the <code>certs</code> folder. Read more about the SSL Process on the <a href="https://github.com/statping/statping/wiki/SSL" target="_blank">SSL Wiki</a>.
<p>With LetsEncrypt enabled, Statping will run through the SSL process and create the SSL certs in the <code>certs</code> folder. Read more about the SSL Process on the <a href="https://github.com/statping-ng/statping-ng/wiki/SSL" target="_blank">SSL Wiki</a>.
- <code>LETSENCRYPT_ENABLE</code> - Set to <strong>true</strong> to have LetsEncrypt enabled. (defaults to false)
- <code>LETSENCRYPT_HOST</code> - Domain to generate SSL certificate
- <code>LETSENCRYPT_EMAIL</code> - Email address that gets sent with the LetsEncrypt Request
@ -476,7 +476,7 @@ services:
<ul>
<li><p><code>BASE_PATH</code> - Set the base URL prefix (set to &lsquo;monitor&rsquo; if URL is domain.com/monitor)</p></li>
<li><p><code>PREFIX</code> - A Prefix for each value in <a href="https://github.com/statping/statping/wiki/Prometheus-Exporter" target="_blank">Prometheus /metric exporter</a></p></li>
<li><p><code>PREFIX</code> - A Prefix for each value in <a href="https://github.com/statping-ng/statping-ng/wiki/Prometheus-Exporter" target="_blank">Prometheus /metric exporter</a></p></li>
<li><p><code>HTTP_PROXY</code> - Use a <a href="https://golang.org/pkg/net/http/#ProxyFromEnvironment" target="_blank">HTTP Proxy</a> for HTTP Requests</p></li>
@ -666,7 +666,7 @@ auto-include many customized parameters to get everything working correctly.</p>
<h1>Dependencies</h1>
<p>Statping has a couple of required dependencies when testing and compiling the
binary. The <a href="https://github.com/statping/statping/blob/master/Makefile" target="_blank">Makefile</a>
binary. The <a href="https://github.com/statping-ng/statping-ng/blob/master/Makefile" target="_blank">Makefile</a>
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.</p>
@ -748,7 +748,7 @@ changes, and submit a Pull Request with the features/bugs you added or removed.<
changed by using<a href="https://gitlab.com/l0nax/changelog-go" target="_blank">changelog-go</a>.</p>
<p>If your PR is related to an Issue (ie. on a bug fix or when adding a new notifier)
don&rsquo;t forget adding the related GitHub Issue ID like this: <code>[#270](https://github.com/statping/statping/issues/270)</code>
don&rsquo;t forget adding the related GitHub Issue ID like this: <code>[#270](https://github.com/statping-ng/statping-ng/issues/270)</code>
Check out the example below.
Adding <em>one</em> changelog entry should be done in a separate Commit - not only
because this is a good Committing practice, also because it&rsquo;s separated by your
@ -759,7 +759,7 @@ where all changes of a new Version are documented.</p>
<h6>Example for fixing a bug in the UI</h6>
<pre><code class="language-bash">~] changelog new &quot;Fix zooming out on graph doesn't load additional data ([#270](https://github.com/statping/statping/issues/270))&quot;
<pre><code class="language-bash">~] changelog new &quot;Fix zooming out on graph doesn't load additional data ([#270](https://github.com/statping-ng/statping-ng/issues/270))&quot;
[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.</p>
<h1>Attach a SSL Certificate</h1>
<p>When you mount <code>server.crt</code> and <code>server.key</code> to the <code>/app</code> directory, Statping will run a HTTPS server on port 443. Checkout the <a href="https://github.com/statping/statping/wiki/SSL" target="_blank">SSL Wiki</a> documentation to see more information about this.</p>
<p>When you mount <code>server.crt</code> and <code>server.key</code> to the <code>/app</code> directory, Statping will run a HTTPS server on port 443. Checkout the <a href="https://github.com/statping-ng/statping-ng/wiki/SSL" target="_blank">SSL Wiki</a> documentation to see more information about this.</p>
<pre><code class="language-bash">docker run -d \
-p 443:443 \
@ -1043,7 +1043,7 @@ networks:
<h1 class="h1 mt-5 mb-5 text-muted">Docker-Compose</h1>
<span class="spacer"></span>
<div v-pre>
<p>This page includes multiple docker-compose.yml setups for you to run. There are many environment variables for additional settings and features, checkout the <a href="https://github.com/statping/statping/wiki/Environment-Variables" target="_blank">Environment Variables Wiki</a> to see them all.</p>
<p>This page includes multiple docker-compose.yml setups for you to run. There are many environment variables for additional settings and features, checkout the <a href="https://github.com/statping-ng/statping-ng/wiki/Environment-Variables" target="_blank">Environment Variables Wiki</a> to see them all.</p>
<p align="center">
<img alt="Docker Image Version (tag latest semver)" src="https://img.shields.io/docker/v/statping/statping/latest">
@ -1248,7 +1248,7 @@ nginx-ssl:
<h1>Grafana Dashboard with Prometheus</h1>
<p>Grafana is an awesome metric visualizer that allows you to create some awesome dashboards. We&rsquo;ve already created a <a href="https://grafana.com/grafana/dashboards/6950" target="_blank">Grafana Dashboard</a> that you can easy import! Checkout the <a href="https://github.com/statping/statping/wiki/Prometheus-Exporter" target="_blank">Grafana Wiki</a> and the <a href="https://github.com/statping/statping/wiki/Prometheus-Exporter" target="_blank">Prometheus Exporter Wiki</a> for more details.</p>
<p>Grafana is an awesome metric visualizer that allows you to create some awesome dashboards. We&rsquo;ve already created a <a href="https://grafana.com/grafana/dashboards/6950" target="_blank">Grafana Dashboard</a> that you can easy import! Checkout the <a href="https://github.com/statping-ng/statping-ng/wiki/Prometheus-Exporter" target="_blank">Grafana Wiki</a> and the <a href="https://github.com/statping-ng/statping-ng/wiki/Prometheus-Exporter" target="_blank">Prometheus Exporter Wiki</a> for more details.</p>
<h5><code>prometheus.yml</code> config file</h5>
@ -1399,8 +1399,8 @@ networks:
<p>You can upgrade the Statping executable by running the commands below on your EC2 instance.</p>
<pre><code>VERSION=$(curl -s &quot;https://github.com/statping/statping/releases/latest&quot; | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')
wget https://github.com/statping/statping/releases/download/$VERSION/statping-linux-x64.tar.gz
<pre><code>VERSION=$(curl -s &quot;https://github.com/statping-ng/statping-ng/releases/latest&quot; | 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
<h2>Raspberry Pi</h2>
<p>You can even run Statping on your Raspberry Pi by installing the precompiled binary from <a href="https://github.com/statping/statping/releases/latest" target="_blank">Latest Releases</a>. For the Raspberry Pi 3 you&rsquo;ll want to download the <code>statping-linux-arm7.tar.gz</code> file. Be sure to change <code>VERSION</code> to the latest version in Releases, and include the &lsquo;v&rsquo;.</p>
<p>You can even run Statping on your Raspberry Pi by installing the precompiled binary from <a href="https://github.com/statping-ng/statping-ng/releases/latest" target="_blank">Latest Releases</a>. For the Raspberry Pi 3 you&rsquo;ll want to download the <code>statping-linux-arm7.tar.gz</code> file. Be sure to change <code>VERSION</code> to the latest version in Releases, and include the &lsquo;v&rsquo;.</p>
<pre><code>VERSION=$(curl -sL &quot;https://github.com/statping/statping/releases/latest&quot; | 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
<pre><code>VERSION=$(curl -sL &quot;https://github.com/statping-ng/statping-ng/releases/latest&quot; | 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
<h2>Alpine Linux</h2>
<p>The Docker image is using the Statping Alpine binary since it&rsquo;s so incredibly small. You can run it on your own alpine image by downloading <code>statping-linux-alpine.tar.gz</code> from <a href="https://github.com/statping/statping/releases/latest" target="_blank">Latest Releases</a>.</p>
<p>The Docker image is using the Statping Alpine binary since it&rsquo;s so incredibly small. You can run it on your own alpine image by downloading <code>statping-linux-alpine.tar.gz</code> from <a href="https://github.com/statping-ng/statping-ng/releases/latest" target="_blank">Latest Releases</a>.</p>
</div>
</div>
@ -1612,7 +1612,7 @@ statping version
<div v-pre>
<h1>Installing on Windows</h1>
<p>Currently, Statping only works on Windows 64-bit computers. Just download the exe file from <a href="https://github.com/statping/statping/releases/latest" target="_blank">Latest Releases</a> and run it in your command prompt. It will create a HTTP server on port 8080, so you can visit <code>http://localhost:8080</code> to see your Statping Status Page.</p>
<p>Currently, Statping only works on Windows 64-bit computers. Just download the exe file from <a href="https://github.com/statping-ng/statping-ng/releases/latest" target="_blank">Latest Releases</a> and run it in your command prompt. It will create a HTTP server on port 8080, so you can visit <code>http://localhost:8080</code> to see your Statping Status Page.</p>
<h1>Compiling SCSS for Custom Theme</h1>
@ -1638,7 +1638,7 @@ statping version
<h2>Known Issues with Windows</h2>
<p>Unfortunately, Statping only works on Windows 64-bit processors. If you have more than 4gb of ram, there&rsquo;s a good chance you already have a 64-bit processor. Download the <a href="https://github.com/statping/statping/releases/latest" target="_blank">Latest Releases</a> of Statping, extract the ZIP file, then double click on the <code>statping.exe</code> file. You can use a SQLite database for a quick setup, or connect to a local/remote Postgres or MySQL database server.</p>
<p>Unfortunately, Statping only works on Windows 64-bit processors. If you have more than 4gb of ram, there&rsquo;s a good chance you already have a 64-bit processor. Download the <a href="https://github.com/statping-ng/statping-ng/releases/latest" target="_blank">Latest Releases</a> of Statping, extract the ZIP file, then double click on the <code>statping.exe</code> file. You can use a SQLite database for a quick setup, or connect to a local/remote Postgres or MySQL database server.</p>
</div>
</div>
@ -1656,7 +1656,7 @@ statping version
<h3>Statping Yaml Config</h3>
<p>You can include multiple environment variables to the configg file. If you include <code>DB_CONN</code> Statping will attempt to automatically connect to that database. View the <a href="https://github.com/statping/statping/wiki/Config-with-.env-File" target="_blank">Full List of Environment Variables</a> to fully customize this config.</p>
<p>You can include multiple environment variables to the configg file. If you include <code>DB_CONN</code> Statping will attempt to automatically connect to that database. View the <a href="https://github.com/statping-ng/statping-ng/wiki/Config-with-.env-File" target="_blank">Full List of Environment Variables</a> to fully customize this config.</p>
<pre><code class="language-yaml">applications:
- name: statping
@ -1701,13 +1701,13 @@ statping version
<h1>Useful Codebase</h1>
<ul>
<li><p><a href="https://github.com/statping/statping/blob/master/handlers/routes.go" target="_blank">handlers/routes.go</a> - Contains all the HTTP request routes</p></li>
<li><p><a href="https://github.com/statping-ng/statping-ng/blob/master/handlers/routes.go" target="_blank">handlers/routes.go</a> - Contains all the HTTP request routes</p></li>
<li><p><a href="https://github.com/statping/statping/blob/master/cmd/commands.go" target="_blank">cmd/commands.go</a> - CLI Commands</p></li>
<li><p><a href="https://github.com/statping-ng/statping-ng/blob/master/cmd/commands.go" target="_blank">cmd/commands.go</a> - CLI Commands</p></li>
<li><p><a href="https://github.com/statping/statping/blob/master/types/services/struct.go" target="_blank">types/service/struct.go</a> - Service struct</p></li>
<li><p><a href="https://github.com/statping-ng/statping-ng/blob/master/types/services/struct.go" target="_blank">types/service/struct.go</a> - Service struct</p></li>
<li><p><a href="https://github.com/statping/statping/blob/master/types/core/struct.go" target="_blank">types/core/struct.go</a> - Core struct</p></li>
<li><p><a href="https://github.com/statping-ng/statping-ng/blob/master/types/core/struct.go" target="_blank">types/core/struct.go</a> - Core struct</p></li>
</ul>
<h1>Deployment Process</h1>
@ -1720,11 +1720,11 @@ statping version
<li>SASS will generate a compiled version of the CSS.</li>
<li>Statping Help page is generated by cloning the Wiki repo using <code>go generate</code>.</li>
<li>Travis-CI tests the Golang application.</li>
<li>Travis-CI tests the Statping API using <a href="https://github.com/statping/statping/blob/master/source/tmpl/postman.json" target="_blank">Postman</a>.</li>
<li>Travis-CI tests the Statping API using <a href="https://github.com/statping-ng/statping-ng/blob/master/source/tmpl/postman.json" target="_blank">Postman</a>.</li>
<li>If all tests are successful, Travis-CI will compile the binaries using <a href="https://github.com/karalabe/xgo" target="_blank">xgo</a>.</li>
<li>Binaries are code signed using the official <a href="https://github.com/statping/statping/wiki/PGP-Signature" target="_blank">PGP key</a> and compressed.</li>
<li>Binaries are code signed using the official <a href="https://github.com/statping-ng/statping-ng/wiki/PGP-Signature" target="_blank">PGP key</a> and compressed.</li>
<li><a href="https://cloud.docker.com/repository/docker/statping/statping/builds" target="_blank">Docker</a> receives a trigger to build for the <code>latest</code> tag.</li>
<li>Travis-CI uploads the <a href="https://github.com/statping/statping/releases" target="_blank">latest release</a> as a tagged version on Github.</li>
<li>Travis-CI uploads the <a href="https://github.com/statping-ng/statping-ng/releases" target="_blank">latest release</a> as a tagged version on Github.</li>
<li>Travis-CI updates the <a href="https://github.com/hunterlong/homebrew-statping" target="_blank">homebrew-statping</a> repo with the latest version.</li>
</ol>
@ -1737,10 +1737,10 @@ statping version
<h1 class="h1 mt-5 mb-5 text-muted">Makefile</h1>
<span class="spacer"></span>
<div v-pre>
<p>Here&rsquo;s a simple list of Makefile commands you can run using <code>make</code>. The <a href="https://github.com/statping/statping/blob/master/Makefile" target="_blank">Makefile</a> may change often, so i&rsquo;ll try to keep this Wiki up-to-date.</p>
<p>Here&rsquo;s a simple list of Makefile commands you can run using <code>make</code>. The <a href="https://github.com/statping-ng/statping-ng/blob/master/Makefile" target="_blank">Makefile</a> may change often, so i&rsquo;ll try to keep this Wiki up-to-date.</p>
<p align="center">
<a href="https://github.com/statping/statping/blob/master/Makefile">View Makefile</a>
<a href="https://github.com/statping-ng/statping-ng/blob/master/Makefile">View Makefile</a>
</p>
<h1>Useful Commands</h1>
@ -1797,7 +1797,7 @@ statping version
<p>Statping implements the <a href="https://graphql.org/" target="_blank">GraphQL</a> API interface so you can customize the exact data you need within a query. The GraphQL endpoint is at <code>/graphql</code> on your Statping instance and is only available for Authenticated users or while sending the <code>Authorization</code> API Secret.</p>
<p align="center">
<a href="https://github.com/statping/statping/blob/master/handlers/graphql/schema.graphql">View schema.graphql</a>
<a href="https://github.com/statping-ng/statping-ng/blob/master/handlers/graphql/schema.graphql">View schema.graphql</a>
</p>
<hr>
@ -1866,7 +1866,7 @@ statping version
<hr>
<p>The code for handling GraphQL requests is in <a href="https://github.com/statping/statping/tree/master/handlers/graphql" target="_blank">handlers/graphql</a> and is using <a href="https://github.com/99designs/gqlgen" target="_blank">gqlgen</a> to automatically generate the schema based on the golang structs.</p>
<p>The code for handling GraphQL requests is in <a href="https://github.com/statping-ng/statping-ng/tree/master/handlers/graphql" target="_blank">handlers/graphql</a> and is using <a href="https://github.com/99designs/gqlgen" target="_blank">gqlgen</a> to automatically generate the schema based on the golang structs.</p>
</div>
</div>
@ -2109,7 +2109,7 @@ CMD_FILE=/bin/bash
<h1 class="h1 mt-5 mb-5 text-muted">config.yml</h1>
<span class="spacer"></span>
<div v-pre>
<p>The <code>config.yml</code> 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&rsquo;s core values. You can view the Go type file on <a href="https://github.com/statping/statping/blob/master/types/types.go#L40" target="_blank">types/types.go</a>.</p>
<p>The <code>config.yml</code> 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&rsquo;s core values. You can view the Go type file on <a href="https://github.com/statping-ng/statping-ng/blob/master/types/types.go#L40" target="_blank">types/types.go</a>.</p>
<h3><code>config.yml</code> Parameters</h3>
@ -2129,7 +2129,7 @@ CMD_FILE=/bin/bash
<h2>Using Environment Variables instead of <code>config.yml</code></h2>
<p>You technically don&rsquo;t need this <code>config.yml</code> 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 <a href="https://github.com/statping/statping/wiki/Config-with-.env-File" target="_blank">Config with .env</a> Wiki page.</p>
<p>You technically don&rsquo;t need this <code>config.yml</code> 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 <a href="https://github.com/statping-ng/statping-ng/wiki/Config-with-.env-File" target="_blank">Config with .env</a> Wiki page.</p>
<p><strong>Statping will auto run with environment variables if</strong> <code>DB_CONN</code> <strong>is set!</strong></p>
@ -2236,7 +2236,7 @@ statping_service_response_length{id=&quot;2&quot; name=&quot;Statping.com&quot;}
<h3>Steps to Authenticate</h3>
<ol>
<li>Download the Statping <code>tar.gz</code> file from <a href="https://github.com/statping/statping/releases/latest" target="_blank">Latest Releases</a> and extract the <code>statping</code> binary and the <code>statup.asc</code> file.</li>
<li>Download the Statping <code>tar.gz</code> file from <a href="https://github.com/statping-ng/statping-ng/releases/latest" target="_blank">Latest Releases</a> and extract the <code>statping</code> binary and the <code>statup.asc</code> file.</li>
<li>Run command: <code>gpg --verify statping.asc</code></li>
<li>You should see <code>Good signature from &quot;Hunter Long &lt;info@statping.com&gt;&quot; [ultimate]</code>.</li>
</ol>
@ -2314,7 +2314,7 @@ OluFxewsEO0QNDrfFb+0gnjYlnGqOFcZjUMXbDdY5oLSPtXohynuTK1qyQ==
<div class="col-12 shadow-md mt-5">
<div class="text-dim" v-pre>
<p align="center">
<a href="https://statping.com">Statping.com</a> | <a href="https://demo.statping.com">Demo</a> | <a href="https://hub.docker.com/r/statping/statping">Docker</a> | <a href="https://github.com/statping/statping/wiki/Notifiers">Notifiers</a> | <a href="https://documenter.getpostman.com/view/1898229/RzfiJUd6">API</a>
<a href="https://statping.com">Statping.com</a> | <a href="https://demo.statping.com">Demo</a> | <a href="https://hub.docker.com/r/statping/statping">Docker</a> | <a href="https://github.com/statping-ng/statping-ng/wiki/Notifiers">Notifiers</a> | <a href="https://documenter.getpostman.com/view/1898229/RzfiJUd6">API</a>
</p>
</div>

View File

@ -8,10 +8,10 @@
Update {{github.tag_name}} Available
<div class="row">
<div class="col-6">
<a href="https://github.com/statping/statping/releases/latest" class="btn btn-sm text-success mt-2">Download</a>
<a href="https://github.com/statping-ng/statping-ng/releases/latest" class="btn btn-sm text-success mt-2">Download</a>
</div>
<div class="col-6">
<a href="https://github.com/statping/statping/blob/master/CHANGELOG.md" class="btn btn-sm text-dim mt-2">Changelog</a>
<a href="https://github.com/statping-ng/statping-ng/blob/master/CHANGELOG.md" class="btn btn-sm text-dim mt-2">Changelog</a>
</div>
</div>
</div>
@ -48,11 +48,11 @@
<h6 class="mt-4 mb-3 text-muted">Statping {{$t('links')}}</h6>
<a href="https://github.com/statping/statping/wiki" class="mb-2 font-2 text-decoration-none text-muted">
<a href="https://github.com/statping-ng/statping-ng/wiki" class="mb-2 font-2 text-decoration-none text-muted">
<font-awesome-icon icon="question" class="mr-3"/> {{$t('docs')}}
</a>
<a href="https://github.com/statping/statping/wiki/API" class="mb-2 font-2 text-decoration-none text-muted">
<a href="https://github.com/statping-ng/statping-ng/wiki/API" class="mb-2 font-2 text-decoration-none text-muted">
<font-awesome-icon icon="laptop" class="mr-2"/> API {{$t('docs')}}
</a>
@ -65,7 +65,7 @@
</a>
<span class="small text-dim text-center mt-5">Statping v{{core.version}}<br>
<a class="small text-muted no-decoration" v-if="core.commit" v-bind:href="`https://github.com/statping/statping/commit/${core.commit}`">{{core.commit.slice(0,8)}}</a>
<a class="small text-muted no-decoration" v-if="core.commit" v-bind:href="`https://github.com/statping-ng/statping-ng/commit/${core.commit}`">{{core.commit.slice(0,8)}}</a>
</span>

View File

@ -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"
)

View File

@ -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"

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"

View File

@ -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"

View File

@ -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"
)

View File

@ -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"

View File

@ -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 (

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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"

View File

@ -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 (

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"

View File

@ -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"

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"

View File

@ -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)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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)

View File

@ -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"

View File

@ -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)

View File

@ -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"

View File

@ -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"
)

View File

@ -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)

View File

@ -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"
)

View File

@ -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"

View File

@ -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"
)

View File

@ -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"

View File

@ -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

View File

@ -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"
)

View File

@ -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 (

View File

@ -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"

View File

@ -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)

View File

@ -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"

View File

@ -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"
)

View File

@ -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"

View File

@ -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)

View File

@ -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"

View File

@ -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)

View File

@ -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"

View File

@ -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"

View File

@ -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"
)

View File

@ -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"

View File

@ -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"

File diff suppressed because one or more lines are too long

View File

@ -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"

View File

@ -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

View File

@ -1,7 +1,7 @@
package checkins
import (
"github.com/statping/statping/types/failures"
"github.com/statping-ng/statping-ng/types/failures"
"time"
)

View File

@ -2,7 +2,7 @@ package checkins
import (
"fmt"
"github.com/statping/statping/utils"
"github.com/statping-ng/statping-ng/utils"
"time"
)

View File

@ -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"
)

View File

@ -1,7 +1,7 @@
package checkins
import (
"github.com/statping/statping/utils"
"github.com/statping-ng/statping-ng/utils"
"time"
)

View File

@ -1,7 +1,7 @@
package checkins
import (
"github.com/statping/statping/types/failures"
"github.com/statping-ng/statping-ng/types/failures"
"time"
)

View File

@ -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"

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"
)

View File

@ -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"

View File

@ -2,7 +2,7 @@ package configs
import (
"fmt"
"github.com/statping/statping/utils"
"github.com/statping-ng/statping-ng/utils"
"os"
)

View File

@ -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"
)

View File

@ -2,7 +2,7 @@ package configs
import (
"fmt"
"github.com/statping/statping/utils"
"github.com/statping-ng/statping-ng/utils"
"gopkg.in/yaml.v2"
)

View File

@ -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 {

View File

@ -1,6 +1,6 @@
package configs
import "github.com/statping/statping/database"
import "github.com/statping-ng/statping-ng/database"
const SqliteFilename = "statping.db"

View File

@ -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

View File

@ -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 {

View File

@ -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"
)

View File

@ -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

View File

@ -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"
)

Some files were not shown because too many files have changed in this diff Show More