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

@@ -26,6 +26,8 @@ type AliyunCASUploader struct {
sdkClient *aliyunCas.Client
}
var _ uploader.Uploader = (*AliyunCASUploader)(nil)
func New(config *AliyunCASUploaderConfig) (*AliyunCASUploader, error) {
client, err := createSdkClient(
config.AccessKeyId,