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

@@ -21,6 +21,8 @@ type TencentCloudSSLUploader struct {
sdkClient *tcSsl.Client
}
var _ uploader.Uploader = (*TencentCloudSSLUploader)(nil)
func New(config *TencentCloudSSLUploaderConfig) (*TencentCloudSSLUploader, error) {
client, err := createSdkClient(
config.SecretId,