mirror of
https://github.com/usual2970/certimate.git
synced 2025-08-11 11:51:45 +00:00
.github
.vscode
docker
internal
app
applicant
certificate
deployer
domain
notify
pkg
core
logging
sdk3rd
1panel
azure
baiducloud
baishan
btpanel
btwaf
bunny
cachefly
cdnfly
cmcc
dnsla
dogecloud
edgio
flexcdn
gcore
gname
goedge
lecdn
netlify
qiniu
rainyun
ratpanel
safeline
ucloud
upyun
volcengine
wangsu
cdn
cdnpro
api.go
client.go
models.go
certificate
openapi
utils
repository
rest
scheduler
statistics
workflow
migrations
ui
.dockerignore
.editorconfig
.gitignore
.goreleaser.yml
CHANGELOG.md
CONTRIBUTING.md
CONTRIBUTING_EN.md
Dockerfile
LICENSE.md
Makefile
README.md
README_EN.md
go.mod
go.sum
main.go
nixpacks.toml
21 lines
381 B
Go
21 lines
381 B
Go
package cdnpro
|
|
|
|
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
|
|
}
|