netevent

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPNetData

type HTTPNetData struct {
	HTTPRequestData  *HTTPRequestData
	HTTPResponseData *HTTPResponseData
}

HTTPNetData encapsulate request and response

func NewHTTPNetData

func NewHTTPNetData(HTTPRequestData *HTTPRequestData, HTTPResponseData *HTTPResponseData) *HTTPNetData

NewHTTPNetData return new NewHTTPNetData object

type HTTPRequestData

type HTTPRequestData struct {
	Method        string
	Host          string
	RequestURI    string
	SourceIP      string
	DestinationIP string
	Headers       map[string]string
	ReqBody       string
	StartTime     string
	Proto         string
}

HTTPRequestData http request data for validation

type HTTPResponseData

type HTTPResponseData struct {
	SourceIP      string
	DestinationIP string
	Headers       []string
	ResBody       string
	StatusCode    int
	StartTime     string
}

HTTPResponseData http response data for validation

Jump to

Keyboard shortcuts

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