result

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Success is returned when the operation was successful.
	Success = iota
	// Error is returned when the operation failed.
	Failed
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HostResult

type HostResult struct {
	Flag          int    //
	FullUrl       string // The full URL
	Host          string // example.com or ip addr
	Port          int    // port number
	TLS           bool   // true if TLS
	IP            string // IP address
	Title         string // title of the response
	Body          string // body of the response
	StatusCode    int    // status code of the response
	ContentLength int64  // content length of the response
	ResponseTime  int64  // time of the response
	FaviconHash   string // favicon hash
	FingerPrint   string
	RawBody       []byte //
	Raw           []byte // raw
	RawHeader     []byte // header
	Headers       map[string]string
}

type Result

type Result struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewResult

func NewResult() *Result

func (*Result) AddHostResult

func (r *Result) AddHostResult(hostResult *HostResult)

func (*Result) AddHostResultSlice

func (r *Result) AddHostResultSlice(hostResult []*HostResult)

func (*Result) GetHostResult

func (r *Result) GetHostResult() chan *HostResult

func (*Result) HasHostResult

func (r *Result) HasHostResult() bool

func (*Result) SetHostResult

func (r *Result) SetHostResult(host string, hostResult *HostResult)

Jump to

Keyboard shortcuts

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