network

package
v0.1.121 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DomainWhoisComponent           = "domain_whois"
	DomainWhoisResponsePort string = "response"
	DomainWhoisErrorPort    string = "error"
	DomainWhoisRequestPort  string = "request"
)

Variables

View Source
var (
	ErrFetch = errors.New("fetchError")
	ErrParse = errors.New("parseError")
)

Functions

This section is empty.

Types

type DomainWhoisError

type DomainWhoisError struct {
	Context    DomainWhoisRequestContext `json:"context,omitempty"`
	Error      string                    `json:"error"`
	ErrorType  string                    `json:"errorType" enum:"parseError,fetchError"`
	DomainName string                    `json:"domainName" format:"hostname"`
}

type DomainWhoisRequest

type DomainWhoisRequest struct {
	Context    DomainWhoisRequestContext `json:"context,omitempty" configurable:"true" title:"Context" description:"Arbitrary message to be send further"`
	DomainName string                    `json:"domainName" required:"true" title:"Domain name to check" format:"hostname"`
}

type DomainWhoisRequestContext

type DomainWhoisRequestContext any

type DomainWhoisSuccess

type DomainWhoisSuccess struct {
	Context    DomainWhoisRequestContext `json:"context,omitempty"`
	WhoIs      whoisparser.WhoisInfo     `json:"whoIs"`
	DomainName string                    `json:"domainName" format:"hostname"`
}

type Whois

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

func (*Whois) GetInfo

func (t *Whois) GetInfo() module.ComponentInfo

func (*Whois) Handle

func (t *Whois) Handle(ctx context.Context, handler module.Handler, port string, msg interface{}) error

func (*Whois) Instance

func (t *Whois) Instance() module.Component

func (*Whois) Ports

func (t *Whois) Ports() []module.Port

type WhoisSettings

type WhoisSettings struct {
	EnableErrorPort bool `` /* 137-byte string literal not displayed */
}

Jump to

Keyboard shortcuts

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