(info *relaycommon.RelayInfo)
| 26 | // TaskPollingAdaptor 定义轮询所需的最小适配器接口,避免 service -> relay 的循环依赖 |
| 27 | type TaskPollingAdaptor interface { |
| 28 | Init(info *relaycommon.RelayInfo) |
| 29 | FetchTask(baseURL string, key string, body map[string]any, proxy string) (*http.Response, error) |
| 30 | ParseTaskResult(body []byte) (*relaycommon.TaskInfo, error) |
| 31 | // AdjustBillingOnComplete 在任务到达终态(成功/失败)时由轮询循环调用。 |
no outgoing calls
no test coverage detected