QNUploadServer.h 851 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // QNUploadServer.h
  3. // AppTest
  4. //
  5. // Created by yangsen on 2020/4/23.
  6. // Copyright © 2020 com.qiniu. All rights reserved.
  7. //
  8. #import "QNUploadRegionInfo.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface QNUploadServer : NSObject <QNUploadServer>
  11. /// 上传server构造方法
  12. /// @param serverId server标识,一般使用host
  13. /// @param host host
  14. /// @param ip host对应的IP
  15. /// @param source ip查询来源,@"system",@"httpdns", @"none", @"customized" 自定义请使用@"customized"
  16. /// @param ipPrefetchedTime 根据host获取IP的时间戳
  17. + (instancetype)server:(NSString * _Nullable)serverId
  18. host:(NSString * _Nullable)host
  19. ip:(NSString * _Nullable)ip
  20. source:(NSString * _Nullable)source
  21. ipPrefetchedTime:(NSNumber * _Nullable)ipPrefetchedTime;
  22. @end
  23. NS_ASSUME_NONNULL_END