config

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2022 License: Zlib Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AccessKey string     `json:"acskey"`
	SecretKey string     `json:"secret"`
	EndPoint  string     `json:"endpoint"`
	Region    string     `json:"region"`
	Expires   uint64     `json:"expires"`  //TOKEN 过期秒
	UseHTTPS  bool       `json:"useHTTPS"` //是否使用https域名
	UseCdn    bool       `json:"useCdn"`   //上传是否使用CDN上传加速
	FileConf  FileConfig `json:"fileConf"`
}

type FileConfig

type FileConfig struct {
	MinChunkSize int64  `json:"min_chunk_size"`
	Cdn          string `json:"fileCdn"`
	TmpPath      string `json:"tmp_path"` //本地的临时文件
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL