server

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRDAP

func GetRDAP(domain string, disableReferral bool) (parser.RDAPInfo, error)

GetRDAP does a RDAP lookup for a supplied domain

func GetWhois

func GetWhois(domain string, disableReferral bool) (parser.WhoisInfo, error)

GetWhois does a WHOIS lookup for a supplied domain

func RdapHandler

func RdapHandler(c *fiber.Ctx) error

func WhoisHandler

func WhoisHandler(c *fiber.Ctx) error

WhoisHandler 用于处理单个域名的Whois信息查询

Types

type Response

type Response struct {
	Success bool        `json:"success"`
	Data    interface{} `json:"data,omitempty"`
	Error   string      `json:"error,omitempty"`
}

type SingleBody

type SingleBody struct {
	Domain string
}

SingleBody defines the JSON body for getting Whois data of a single domain

Jump to

Keyboard shortcuts

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