mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-08 13:39:53 +00:00
21 lines
378 B
Go
21 lines
378 B
Go
package cdn
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/usual2970/certimate/internal/pkg/sdk3rd/wangsu/openapi"
|
|
)
|
|
|
|
type Client struct {
|
|
client *openapi.Client
|
|
}
|
|
|
|
func NewClient(accessKey, secretKey string) *Client {
|
|
return &Client{client: openapi.NewClient(accessKey, secretKey)}
|
|
}
|
|
|
|
func (c *Client) WithTimeout(timeout time.Duration) *Client {
|
|
c.client.WithTimeout(timeout)
|
|
return c
|
|
}
|