Versions in this module Expand all Collapse all v7 v7.25.2 Dec 13, 2024 v7.25.1 Dec 12, 2024 v7.25.0 Dec 12, 2024 Changes in this version + const APITypeKodo + const ErrorTypeCannotConnectToHost + const ErrorTypeLocalIoError + const ErrorTypeMaliciousResponse + const ErrorTypeProtocolError + const ErrorTypeResponseError + const ErrorTypeSSLError + const ErrorTypeTimeout + const ErrorTypeTransmissionError + const ErrorTypeUnexpectedSyscallError + const ErrorTypeUnknownError + const ErrorTypeUnknownHost + const ErrorTypeUserCanceled + const LogResultBadRequest + const LogResultCannotConnectToHost + const LogResultInvalidArgs + const LogResultLocalIoError + const LogResultMaliciousResponse + const LogResultOK + const LogResultProtocolError + const LogResultResponseError + const LogResultSSLError + const LogResultTimeout + const LogResultTransmissionError + const LogResultUnexpectedSyscallError + const LogResultUnknownError + const LogResultUnknownHost + const LogResultUserCanceled + const LogTypeBlock + const LogTypeQuality + const LogTypeRequest + const LogTypeTransaction + const UPLOG_CHANNEL_SIZE + const UPLOG_FILE_BUFFER_NAME + const UPLOG_FILE_LOCK_NAME + const UPLOG_MEMORY_BUFFER_SIZE + const UpApiVersionV1 + const UpApiVersionV2 + const UpTypeForm + const UpTypeResumableV1 + const UpTypeResumableV2 + const X_LOG_CLIENT_ID + func DisableUplog() + func EnableUplog() + func FlushBuffer() error + func GetUplogMaxStorageBytes() uint64 + func GetUplogUrl() string + func GetWriteFileBufferInterval() time.Duration + func IsUplogEnabled() bool + func SetUplogFileBufferDirPath(path string) + func SetUplogMaxStorageBytes(max uint64) + func SetUplogUrl(url string) + func SetWriteFileBufferInterval(d time.Duration) + func WithBlock(ctx context.Context, upApiVersion UpApiVersion, fileSize, recoveredFrom uint64, ...) error + func WithQuality(ctx context.Context, upType UpType, fileSize uint64, ...) error + type APIType string + type ErrorType string + type GetUpToken func() (string, error) + type LogResult string + type LogType string + type RequestUplog struct + APIName string + APIType APIType + BytesReceived int64 + BytesSent int64 + BytesTotal int64 + ConnectElapsedTime uint64 + DNSElapsedTime uint64 + ErrorDescription string + ErrorType ErrorType + HTTPClient string + HTTPClientVersion string + HTTPVersion string + Host string + LogType LogType + Method string + OSArch string + OSName string + OSVersion string + Path string + PerceptiveSpeed int64 + Pid int + Port uint64 + RemoteIP string + RequestElapsedTime uint64 + RequestID string + ResponseElapsedTime uint64 + SDKName string + SDKVersion string + StatusCode int + TLSConnectElapsedTime uint64 + TargetBucket string + TargetKey string + TotalElapsedTime uint64 + UpTime int64 + WaitElapsedTime uint64 + func NewRequestUplog(apiName, targetBucket, targetKey string, getUpToken GetUpToken) (*RequestUplog, error) + func (uplog *RequestUplog) Intercept(req *http.Request, handler clientv2.Handler) (resp *http.Response, err error) + func (uplog *RequestUplog) Priority() clientv2.InterceptorPriority + type UpApiVersion uint8 + type UpType string