config

package
v1.3.31 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 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 BucketInfo added in v0.5.31

type BucketInfo struct {
	Name             string `json:"name"`
	Host             string `json:"host"`
	DefaultUploadDir string `json:"defaultUploadDir"`
	AllowExt         string `json:"allowExt"`
}

type Config

type Config struct {
	Access
	TokenCallbackUrl string     `json:"tokenCallbackUrl"`
	Expires          int64      `json:"expires"`  //TOKEN 过期秒
	UseHTTPS         bool       `json:"useHttps"` //是否使用https域名
	UseCdn           bool       `json:"useCdn"`   //上传是否使用CDN上传加速
	FileConfig       FileConfig `json:"fileConfig"`
}

type FileConfig

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

Jump to

Keyboard shortcuts

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