config

package
v0.5.22 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 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 Access added in v0.5.8

type Access struct {
	AccessKey string `json:"acskey"`
	SecretKey string `json:"secret"`
	EndPoint  string `json:"endpoint"`
	Region    string `json:"region"`
}

type Config

type Config struct {
	Access
	Expires  uint64     `json:"expires"`   //TOKEN 过期秒
	UseHTTPS bool       `json:"use_https"` //是否使用https域名
	UseCdn   bool       `json:"use_cdn"`   //上传是否使用CDN上传加速
	FileConf FileConfig `json:"file_config"`
}

type FileConfig

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

Jump to

Keyboard shortcuts

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