Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliyunLog ¶ added in v2.0.10
type AliyunLog struct {
// contains filtered or unexported fields
}
func NewAliyunLog ¶ added in v2.0.10
type GocoreLog ¶ added in v2.0.10
type GocoreLog struct { }
func NewGocoreLog ¶ added in v2.0.10
func NewGocoreLog() *GocoreLog
type HttpClient ¶
type HttpClient struct { Client *resty.Client Request *resty.Request }
func New ¶
func New() *HttpClient
func (*HttpClient) SetLog ¶ added in v2.0.10
func (h *HttpClient) SetLog(log Log) *HttpClient
func (*HttpClient) SetTrace ¶
func (h *HttpClient) SetTrace(header interface{}) *HttpClient
type LogObject ¶ added in v2.0.10
type LogObject struct { Url string `json:"url"` Method string `json:"method"` RequestHders http.Header `json:"request_headers"` RequestRawBody interface{} `json:"request_raw_body"` ResponseHeaders http.Header `json:"response_headers"` ResponseBody string `json:"response_body"` StartTime string `json:"start_time"` Duration time.Duration `json:"duration"` Status int `json:"status"` }
Click to show internal directories.
Click to hide internal directories.