api

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OriginHeaderKey = "X-Tufin-Origin"

	OriginAWSAPIGateway   = "AWSAPIGateway"
	OriginIstioAccessLogs = "IstioAccessLogs"
	OriginIstioEnvoyLua   = "IstioEnvoyLua"
	OriginNginx           = "Nginx"
	OriginGoMiddleware    = "GoMiddleware"
	OriginMetadata        = "Metadata"
)

Variables

This section is empty.

Functions

func OriginHasResponse

func OriginHasResponse(origin string) bool

Types

type HTTPLog

type HTTPLog struct {
	Domain          string         `json:"domain"`
	Project         string         `json:"project"`
	Time            civil.DateTime `json:"time"`
	Scheme          string         `json:"scheme"`
	Host            string         `json:"host"` // host or host:port
	Path            string         `json:"path"`
	QueryString     url.Values     `json:"query_string"` // parsed (not encoded)
	Method          string         `json:"method"`
	RequestBody     string         `json:"request_body"`
	RequestHeaders  http.Header    `json:"request_headers"` // canonical format
	Cookies         []*http.Cookie `json:"cookies"`
	StatusCode      int            `json:"status_code"`
	ResponseBody    string         `json:"response_body"`
	ResponseHeaders http.Header    `json:"response_headers"` // canonical format
	RequestTime     int64          `json:"request_time"`     // latency
	Service         string         `json:"service"`
	Protocol        string         `json:"protocol"`
	Connection      string         `json:"connection"`
	Origin          string         `json:"origin"`
	BytesSent       int64          `json:"bytes_sent"`
}

func (*HTTPLog) Clone

func (httpLog *HTTPLog) Clone() *HTTPLog

Jump to

Keyboard shortcuts

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