req

package
v0.0.0-...-c13d752 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Req

type Req struct {
	AppID            string `json:"appid"`
	RemoteAddr       string `json:"remote_addr"`
	UserAgent        string `json:"user_agent"`
	Method           string `json:"method"`
	Host             string `json:"host"`
	URL              string `json:"url"`
	Status           int    `json:"status"`
	Referer          string `json:"referer"`
	RespTime         string `json:"resp_time"`
	RespSize         int    `json:"resp_size"`
	Time             string `json:"time"`
	Proto            string `json:"proto"`
	Username         string `json:"username"`
	GeoIPCountry     string `json:"geoip_country,omitempty"`
	GeoIPCountryCode string `json:"geoip_country_code,omitempty"`
	GeoIPRegion      string `json:"geoip_region,omitempty"`
	GeoIPRegionCode  string `json:"geoip_region_code,omitempty"`
	GeoIPCity        string `json:"geoip_city,omitempty"`
	GeoIPLatLong     string `json:"geoip_lat_long"`
}

Req holds the request/response info for a Broxy request

func (*Req) ApacheFmt

func (r *Req) ApacheFmt() string

ApacheFmt returns the request formatted in the Apache Combined Log Format

Jump to

Keyboard shortcuts

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