refactor: ensure compile-time check for Uploader implementations

This commit is contained in:
Fu Diwei
2024-11-09 09:47:14 +08:00
parent 44332b9d07
commit 83674e4b35
8 changed files with 15 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ type AliyunSLBUploader struct {
sdkClient *aliyunSlb.Client
}
var _ uploader.Uploader = (*AliyunSLBUploader)(nil)
func New(config *AliyunSLBUploaderConfig) (*AliyunSLBUploader, error) {
client, err := createSdkClient(
config.AccessKeyId,