poke

package
v0.0.0-...-614c6de Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2014 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.0.2"

Variables

This section is empty.

Functions

This section is empty.

Types

type Poke

type Poke struct {
	Timestamp time.Time
	Target    *url.URL `json:"-"`
	Host      string
	Version   string `json:"GoPokeVersion"`

	Results []*Result
	// contains filtered or unexported fields
}

func NewPoke

func NewPoke(userTarget string) *Poke

func (*Poke) AddAction

func (p *Poke) AddAction(action action)

func (*Poke) Run

func (p *Poke) Run()

type Result

type Result struct {
	Name     string
	Target   string
	Response []string `json:"-"`
	Metrics  map[string]interface{}
	Err      error
}

func DNSLookup

func DNSLookup(p *Poke) *Result

func GetRequest

func GetRequest(p *Poke) *Result

func NewResult

func NewResult(name, target string) *Result

Jump to

Keyboard shortcuts

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