Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessLog ¶
type AccessLog struct { Severity string `json:"severity"` Time time.Time `json:"time"` Trace string `json:"logging.googleapis.com/trace"` HTTPRequest HTTPRequest `json:"httpRequest"` }
AccessLog is a log written by the service each time it is accessed by the client
type ApplicationLog ¶
type ApplicationLog struct { Severity string `json:"severity"` Message string `json:"message"` Time time.Time `json:"time"` SourceLocation SourceLocation `json:"logging.googleapis.com/sourceLocation"` Trace string `json:"logging.googleapis.com/trace"` SpanID string `json:"logging.googleapis.com/spanId"` TraceSampled bool `json:"logging.googleapis.com/trace_sampled"` }
ApplicationLog is a log written by the developer by any timing
type Duration ¶ added in v0.2.7
Duration provides time.Duration by protobuf format.
func (Duration) MarshalJSON ¶ added in v0.2.7
MarshalJSON convert raw value to JSON value.
type HTTPRequest ¶
type HTTPRequest struct { RequestMethod string `json:"requestMethod"` RequestURL string `json:"requestUrl"` RequestSize string `json:"requestSize,omitempty"` Status int `json:"status"` ResponseSize string `json:"responseSize,omitempty"` UserAgent string `json:"userAgent,omitempty"` RemoteIP string `json:"remoteIp,omitempty"` ServerIP string `json:"serverIp,omitempty"` Referer string `json:"referer,omitempty"` Latency Duration `json:"latencyy"` Protocol string `json:"protocol"` }
func MakeHTTPRequest ¶
type SourceLocation ¶
Click to show internal directories.
Click to hide internal directories.