api

package
v0.0.0-...-7752920 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAllowedNet

func IsAllowedNet(s string) bool

func Send

func Send(handle interface{}, packet []byte) error

func SendTimer

func SendTimer(timeout time.Duration, handle interface{}, packet []byte) error

func WebSend

func WebSend(c echo.Context) error

Types

type Config

type Config struct {
	Device      string `json:"device"`
	Concurrency int    `json:"concurrency"`
	Core        int    `json:"core"`
	Count       uint64 `json:"count"`
	Timer       int64  `json:"timer"`
	SrcEth      string `json:"srceth"`
	DstEth      string `json:"dsteth"`
	SrcIP       string `json:"srcip"`
	DstIP       string `json:"dstip"`
	SrcPort     uint16 `json:"srcport"`
	DstPort     uint16 `json:"dstport"`
	Size        int    `json:"size"`
}

func NewConfig

func NewConfig() *Config

func (*Config) Dump

func (c *Config) Dump()

func (*Config) ExecFromCLI

func (c *Config) ExecFromCLI() error

func (*Config) ExecFromWeb

func (c *Config) ExecFromWeb() error

Jump to

Keyboard shortcuts

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