model

package
v1.29.8 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

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

func (v DataFlow) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DataFlow) MarshalJSON

func (v DataFlow) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DataFlow) UnmarshalEasyJSON

func (v *DataFlow) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DataFlow) UnmarshalJSON

func (v *DataFlow) UnmarshalJSON(data []byte) error

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

func (v Request) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Request) MarshalJSON

func (v Request) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Request) UnmarshalEasyJSON

func (v *Request) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Request) UnmarshalJSON

func (v *Request) UnmarshalJSON(data []byte) error

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

func (v Response) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Response) MarshalJSON

func (v Response) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Response) UnmarshalEasyJSON

func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Response) UnmarshalJSON

func (v *Response) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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