new: Automatically pull Markdown files from Tencent Cloud COS

This commit is contained in:
2024-12-17 22:12:12 +08:00
parent 959cef6a2a
commit 95f4496ab6
10 changed files with 168 additions and 11 deletions

View File

@@ -9,9 +9,10 @@ import (
)
type MConfig struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Template string `yaml:"template"`
Host string `yaml:"host"`
Port int `yaml:"port"`
Storage mStorage `yaml:"storage"`
Template string `yaml:"template"`
MSite mSite `yaml:"site"`
}

17
config/mStorage.go Normal file
View File

@@ -0,0 +1,17 @@
package config
type mStorage struct {
SRC string `yaml:"src"`
DST string `yaml:"dst"`
Type string `yaml:"type"`
COS cosConfig `yaml:"cos"`
}
type cosConfig struct {
Appid string `yaml:"appid"`
Bucket string `yaml:"bucket"`
Region string `yaml:"region"`
SecretId string `yaml:"secret_id"`
SecretKey string `yaml:"secret_key"`
SavePath string `yaml:"save_path"`
}