QNUploadServerFreezeManager.h 636 B

123456789101112131415161718192021222324252627282930
  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. @interface QNUploadServerFreezeManager : NSObject
  11. /// 查询host是否被冻结
  12. /// @param type 冻结Key
  13. - (BOOL)isTypeFrozen:(NSString * _Nullable)type;
  14. /// 冻结host
  15. /// @param type 冻结Key
  16. /// @param frozenTime 冻结时间
  17. - (void)freezeType:(NSString * _Nullable)type frozenTime:(NSInteger)frozenTime;
  18. /// 解冻host
  19. /// @param type 冻结Key
  20. - (void)unfreezeType:(NSString * _Nullable)type;
  21. @end
  22. NS_ASSUME_NONNULL_END