monitor

package module
v0.0.0-...-7a1f7bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 17 Imported by: 0

README

reseed-monitoring

A service for monitoring I2P reseed servers remotely. It asks for a reseed bundle from all available sources(defined in config.json) and outputs information about them.

The easiest way to run it is with docker installed. I just run this script on a daily basis using cron:

	#! /usr/bin/env sh
	docker pull  eyedeekay/reseed-monitoring
	docker rm -f reseed-monitoring
	docker run -itd --name reseed-monitoring --restart=always -p 127.0.0.1:7672:7672 eyedeekay/reseed-monitoring

Then, set up a an I2PTunnel to it in the Hidden Services Manager.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKeys

func CheckKeys(su3file *su3.File, dir string) (string, error)

func FetchReseed

func FetchReseed(url, cert string, onion bool) ([]byte, error)

func GeneratePage

func GeneratePage() (string, error)

func GeneratePageData

func GeneratePageData() []error

func LoadMap

func LoadMap(file string) (map[string]string, error)

func MakeReseedData

func MakeReseedData(url, cert string, onion bool) (*su3.File, error)

func MakeReseedData(url, cert string) (map[string]string, error) {

func MakeReseedDataMap

func MakeReseedDataMap(url, cert string, onion bool) (map[string]string, error)

func Monitor

func Monitor(info map[string]string) []error

func PrepURL

func PrepURL(url string) string

func SortedMap

func SortedMap(file string) ([]string, error)

func SortedMonitor

func SortedMonitor(info []string) []error

func Split

func Split(kv string) (string, string)

func Split2

func Split2(kv string) (string, string)

func StatToBytes

func StatToBytes(m map[string]string) []byte

func ToMap

func ToMap(s *su3.File) map[string]string

func TrimDir

func TrimDir(path string) string

func TrimURL

func TrimURL(url string) string

Types

type MonitorServer

type MonitorServer struct {
}

func (*MonitorServer) ServeHTTP

func (m *MonitorServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL