serverchecker

package module
v0.0.0-...-9effd66 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

README

serverchecker

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain struct {
	ID               uuid.UUID `json:"id"`
	ServersChanged   bool      `json:"servers_changed"`
	SslGrade         string    `json:"ssl_grade"`
	PreviousSslGrade string    `json:"previous_ssl_grade"`
	Title            string    `json:"title"`
	IsDown           bool      `json:"is_down"`
	Host             string    `json:"host"`
	Servers          []Server  `json:"servers"`
}

type DomainStore

type DomainStore interface {
	Domain(host string) (Domain, error)
	Domains() ([]Domain, error)
	CreateDomain(d *Domain) error
	UpdateDomain(d *Domain) error
	DeleteDomain(id uuid.UUID) error
}

type Server

type Server struct {
	Address  string `json:"address"`
	SslGrade string `json:"ssl_grade"`
	Country  string `json:"country"`
	Owner    string `json:"owner"`
}

type Store

type Store interface {
	DomainStore
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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