define

package
v0.0.0-...-ce7cf01 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccessKeyID = "cloud-disk"
View Source
var BucketLocation = "beijing"
View Source
var BucketName = "cloud-disk"
View Source
var BucketPolicy = "" /* 443-byte string literal not displayed */

BucketPolicy 设置存储桶权限

View Source
var CodeExpire = 300

CodeExpire 验证码过器时间

View Source
var CodeLength = 6
View Source
var DateTime = "2006-01-02 15:04:05"

DateTime go的格式化时间

View Source
var Doc = []string{".pdf", ".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".md"}
View Source
var EmailPassword = "your-email-password"
View Source
var Endpoint = "loaclhost:9000"

Endpoint minio对象存储相关数据

View Source
var Image = []string{".xbm", ".tif", "pjp", ".svgz", "jpg", "jpeg", "ico", "tiff", ".gif", ".svg", ".jfif", ".webp", ".png", ".bmp", "pjpeg", ".avif"}
View Source
var JwtKey = "cloud-disk-key"
View Source
var Other = append(append(Videos, Image...), Doc...)
View Source
var PageSize = 20

PageSize 分页默认参数

View Source
var RefreshTokenExpire = 7200
View Source
var SSLBool = false
View Source
var SecretAccessKey = "cloud-disk"
View Source
var TokenExpire = 3600

TokenExpire token有效期

View Source
var Videos = []string{".avi", ".wmv", ".mpg", "mpeg", ".mov", ".rm", ".ram", ".swf", ".flv", ".mp4"}

文件后缀判断

Functions

This section is empty.

Types

type UserClaim

type UserClaim struct {
	Id       int
	Identity string
	Name     string
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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