Discover Packages
github.com/guillaumejacquart/go-http-scheduler
command
module
Version:
v0.0.0-...-7c9107b
Opens a new window with list of versions in this module.
Published: Jul 25, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Go healthcheck
Go healthcheck is an opensource healthcheck system that ensures your HTTP applications are up and running.
Katacoda tutorial : https://www.katacoda.com/ghiltoniel/scenarios/2
Run
Create the docker-compose.yml file :
version: '3.1'
services:
go-http-scheduler:
build: .
image: ghiltoniel/go-http-scheduler
ports:
- 8080:8080
volumes:
- ./config_docker.yml:/go/src/app/config.yml
environment:
- DB.TYPE=sqlite3
- DB.PATH=data.db
Then run :
docker-compose up
Go to http://localhost:8080/app to see your dashboard
Configuration
The configuration can be set in any of the following places :
config.yml file at the root of the source
config.yml file inside %HOME%/.go-http-scheduler/
config.yml file in /etc/go-http-scheduler/
in the environment variables (using capitalize letters, ex : DB.TYPE=sqlite3)
Configuration variables
history:
enabled: true if you want the check history to be saved into db, false if you want to keep only latest check
db:
type: mysql / sqlite3 / postgres
username: the database username
password: the database password
host: the database host
port: the database port
name: the database name
path: the file database path (for sqlite3)
smtp:
host: the smtp host
port: the smtp port
username: the smtp username
password: the smtp password
from: the from email field
to: the to email field for notification
authentication:
enabled: is authentication enabled
username: the administrator username
password: the administrator password
TBD
Notification by API calls
Test coverage
Expand ▾
Collapse ▴
Documentation
¶
Copyright © 2017 NAME HERE <EMAIL ADDRESS>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.