elastic

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2022 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ScanType = "elastic"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ScanResult

type ScanResult struct {
	ScanType string                 `json:"scan"`
	Proto    string                 `json:"proto"`
	Host     string                 `json:"host"`
	Info     map[string]interface{} `json:"info"`
	Indexes  map[string]interface{} `json:"indexes"`
}

func (*ScanResult) ID

func (r *ScanResult) ID() string

func (*ScanResult) MarshalJSON

func (r *ScanResult) MarshalJSON() ([]byte, error)

func (*ScanResult) String

func (r *ScanResult) String() string

type Scanner

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

func NewScanner

func NewScanner(proto string, opts ...ScannerOption) *Scanner

func (*Scanner) Scan

func (s *Scanner) Scan(ctx context.Context, r *scan.Request) (result scan.Result, err error)

type ScannerOption

type ScannerOption func(*Scanner)

func WithDataTimeout

func WithDataTimeout(timeout time.Duration) ScannerOption

Jump to

Keyboard shortcuts

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