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

@@ -23,6 +23,8 @@ type QiniuSSLCertUploader struct {
sdkClient *qiniuEx.Client
}
var _ uploader.Uploader = (*QiniuSSLCertUploader)(nil)
func New(config *QiniuSSLCertUploaderConfig) (*QiniuSSLCertUploader, error) {
client, err := createSdkClient(
config.AccessKey,