server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter() *mux.Router

NewRouter generates a new structure associated with the Router

func NewServer

func NewServer() *http.Server

NewServer generates a new structure associated with the server

func NewTemplates

func NewTemplates() *template.Template

NewTemplates generates a new structure associated with the HTML templates served on the website

Types

type DB

type DB struct {
	Data *Data
	// contains filtered or unexported fields
}

DB is a structure associated with the Redis database

func NewDatabase

func NewDatabase() *DB

NewDatabase generates a new structure associated with the Redis database

func (*DB) GetDomain

func (db *DB) GetDomain()

GetDomain returns the target domain

func (*DB) GetSubdomains

func (db *DB) GetSubdomains()

GetSubdomains returns the sub-domains associated with a domain

func (*DB) GetWhois

func (db *DB) GetWhois()

GetWhois gets the Whois information stored about the domain

func (*DB) Purge

func (db *DB) Purge()

Purge deletes all the information hosted in the database

func (*DB) SetDomain

func (db *DB) SetDomain(domain string)

SetDomain stores the target domain in the database

func (*DB) SetSubdomains

func (db *DB) SetSubdomains(subdomains []string)

SetSubdomains Stores the subdomains in the database

func (*DB) SetWhois

func (db *DB) SetWhois(whois *modules.SWhois)

SetWhois stores relevant Whois information about the domain in the database

type Data

type Data struct {
	Target     string
	Subdomains []string
	Whois      *modules.SWhois
}

Data is a structure associated with data stored in the Redis database

Jump to

Keyboard shortcuts

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