QNUploadServerFreezeManager.h 867 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // QNUploadServerFreezeManager.h
  3. // QiniuSDK
  4. //
  5. // Created by yangsen on 2020/6/2.
  6. // Copyright © 2020 Qiniu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. #define kQNUploadServerFreezeManager [QNUploadServerFreezeManager shared]
  11. @interface QNUploadServerFreezeManager : NSObject
  12. + (instancetype)shared;
  13. /// 查询host是否被冻结
  14. /// @param host host
  15. /// @param type host类型
  16. - (BOOL)isFrozenHost:(NSString *)host type:(NSString * _Nullable)type;
  17. /// 冻结host
  18. /// @param host host
  19. /// @param type host类型
  20. /// @param frozenTime 冻结时间
  21. - (void)freezeHost:(NSString *)host type:(NSString * _Nullable)type frozenTime:(NSInteger)frozenTime;
  22. /// 解冻host
  23. /// @param host host
  24. /// @param type host类型
  25. - (void)unfreezeHost:(NSString *)host type:(NSString * _Nullable)type;
  26. @end
  27. NS_ASSUME_NONNULL_END