domain

package
v0.0.0-...-c5bcced Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

The check/domain package checks a domain's security information.

var lib = require('check/domain');
var res = lib.check('https://tv.eurosport.com:443');
console.log(res);

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(orb *orbit.Orbit) interface{}

Types

type Cert

type Cert struct {
	CA         bool       `console:"ca" codec:"ca"`
	IPs        []string   `console:"ips" codec:"ips"`
	Names      []string   `console:"names" codec:"names"`
	Emails     []string   `console:"emails" codec:"emails"`
	Issuer     string     `console:"issuer" codec:"issuer"`
	Subject    string     `console:"subject" codec:"subject"`
	Version    int        `console:"version" codec:"version"`
	NotAfter   *time.Time `console:"notafter" codec:"notafter"`
	NotBefore  *time.Time `console:"notbefore" codec:"notbefore"`
	Algorithm  string     `console:"algorithm" codec:"algorithm"`
	Expired    bool       `console:"expired" codec:"expired"`
	Deprecated bool       `console:"deprecated" codec:"deprecated"`
}

type Info

type Info struct {
	Up     bool    `console:"up" codec:"up"`
	Ok     bool    `console:"ok" codec:"ok"`
	Host   string  `console:"host" codec:"host"`
	Port   string  `console:"port" codec:"port"`
	Scheme string  `console:"scheme" codec:"scheme"`
	Domain string  `console:"domain" codec:"domain"`
	Certs  []*Cert `console:"certs" codec:"certs"`
}

type Module

type Module struct {
	// contains filtered or unexported fields
}

func (*Module) Check

func (this *Module) Check(addr string) (info *Info)

Jump to

Keyboard shortcuts

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