store

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RedisClient redis 客户端
	RedisClient *redis.Client
	// DB ...
	DB *gorm.DB
	// Picture 头像
	Picture *DefaultStorage
)

Functions

func FileRename added in v0.3.0

func FileRename(filename string) string

FileRename 重命名文件名

func Init

func Init()

Init 初始化

Types

type DefaultStorage added in v0.3.0

type DefaultStorage struct {
	storage.Storager
}

DefaultStorage 默认存储

func NewDefaultStorage added in v0.3.0

func NewDefaultStorage(storage storage.Storager) *DefaultStorage

NewDefaultStorage 创建默认存储

func (*DefaultStorage) MaxMemory added in v0.3.0

func (*DefaultStorage) MaxMemory() int64

MaxMemory 最大上传大小

Jump to

Keyboard shortcuts

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