event

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTTPClient httpClient = http.DefaultClient

HTTPClient is an abstraction of sending an HTTP request

Functions

This section is empty.

Types

type HTTPEvent

type HTTPEvent struct {
	URL    *url.URL
	Method string
	Path   string
	Body   io.Reader
}

func (HTTPEvent) Fire

func (he HTTPEvent) Fire(ctx context.Context) error

Fire execute a Event by parameters

func (HTTPEvent) Name

func (he HTTPEvent) Name() string

Name is Event name each event types

type ICMPv4Event

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

not work on

func NewICMPv4Event

func NewICMPv4Event(seq int, listenAddr, addr string) *ICMPv4Event

func (ICMPv4Event) Fire

func (e ICMPv4Event) Fire(ctx context.Context) error

func (ICMPv4Event) Name

func (e ICMPv4Event) Name() string

Jump to

Keyboard shortcuts

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