web

package
v0.0.0-...-dd8cd74 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sanitise

func Sanitise(site string) (plain string, ssl string, err error)

Sanitise makes sure only the domain name gets through to prevent abuse by launching multiple requests on a single website.

Types

type Health

type Health struct {
	Site   string
	Status int
	Misc   string
}

Health struct to contain Health of site

func CheckBulk

func CheckBulk(sites []string) []Health

CheckBulk checks multiple domain healths at once

func CheckHealth

func CheckHealth(site string) Health

CheckHealth gets the Status code of one domain

func (*Health) IsAccepted

func (health *Health) IsAccepted() (out bool)

IsAccepted : whether a site is accepted by this bot

Jump to

Keyboard shortcuts

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