|
@@ -17,6 +17,7 @@ type RelayInfo struct {
|
|
|
TokenUnlimited bool
|
|
TokenUnlimited bool
|
|
|
StartTime time.Time
|
|
StartTime time.Time
|
|
|
FirstResponseTime time.Time
|
|
FirstResponseTime time.Time
|
|
|
|
|
+ setFirstResponse bool
|
|
|
ApiType int
|
|
ApiType int
|
|
|
IsStream bool
|
|
IsStream bool
|
|
|
RelayMode int
|
|
RelayMode int
|
|
@@ -83,6 +84,13 @@ func (info *RelayInfo) SetIsStream(isStream bool) {
|
|
|
info.IsStream = isStream
|
|
info.IsStream = isStream
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (info *RelayInfo) SetFirstResponseTime() {
|
|
|
|
|
+ if !info.setFirstResponse {
|
|
|
|
|
+ info.FirstResponseTime = time.Now()
|
|
|
|
|
+ info.setFirstResponse = true
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
type TaskRelayInfo struct {
|
|
type TaskRelayInfo struct {
|
|
|
ChannelType int
|
|
ChannelType int
|
|
|
ChannelId int
|
|
ChannelId int
|