Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataFlow ¶
type DataFlow struct {
From string `json:"from"`
Relay string `json:"relay"`
To []string `json:"to"`
Process []string `json:"process"`
}
func (DataFlow) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (DataFlow) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*DataFlow) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*DataFlow) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type HttpRequest ¶
type HttpRequest struct {
ID uint64 `json:"id,omitempty"`
LoggingTime string `json:"timestamp,omitempty"`
LocalIP string `json:"local_ip,omitempty"`
RemoteIP string `json:"remote_ip,omitempty"`
IsTLS bool `json:"tls"`
TLSDidResume bool `json:"tls_reuse,omitempty"`
Request *Request `json:"request,omitempty"`
Response *Response `json:"response,omitempty"`
DataFlow *DataFlow `json:"flow,omitempty"`
Elastic map[string]interface{} `json:"elastic,omitempty"`
}
func (HttpRequest) MarshalEasyJSON ¶
func (v HttpRequest) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (HttpRequest) MarshalJSON ¶
func (v HttpRequest) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*HttpRequest) UnmarshalEasyJSON ¶
func (v *HttpRequest) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*HttpRequest) UnmarshalJSON ¶
func (v *HttpRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type Request ¶
type Request struct {
StartTime string `json:"started,omitempty"`
Host string `json:"host,omitempty"`
RemoteAddr string `json:"remote_addr,omitempty"`
LocalAddr string `json:"local_addr,omitempty"`
Method string `json:"method,omitempty"`
Header map[string]string `json:"header,omitempty"`
URI string `json:"uri,omitempty"`
Path string `json:"path,omitempty"`
QueryArgs map[string]string `json:"query_args,omitempty"`
BodyLength int `json:"body_length"`
Body string `json:"body,omitempty"`
User string `json:"user,omitempty"`
}
func (Request) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Request) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Request) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Request) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Response ¶
type Response struct {
Cached bool `json:"cached"`
LocalAddr string `json:"local_addr,omitempty"`
RemoteAddr string `json:"remote_addr,omitempty"`
Header map[string]string `json:"header,omitempty"`
StatusCode int `json:"status_code"`
BodyLength int `json:"body_length"`
Body string `json:"body,omitempty"`
ElapsedTimeInMs float32 `json:"elapsed"`
}
func (Response) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Response) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Response) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Response) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface