config

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 12

Documentation

Index

Constants

View Source
const (
	ConfigJWT             = `jwt`
	ConfigJWTGroupDefault = `default`
)
View Source
const (
	ConfigRedis             = `redis`
	ConfigRedisGroupDefault = `default`
	ConfigRedisGroupCache   = `cache`
)
View Source
const (
	ConfigSystem                 = `system`           // 系统配置
	ConfigSystemFontPath         = `fontPath`         // 字体路径
	ConfigSystemMaterialUnderImg = `materialUnderImg` // 素材默认底图
)
View Source
const (
	ConfigUploads      = `uploads`
	ConfigUploadsLocal = `local`
)

Variables

This section is empty.

Functions

func New

func New() *sConfig

Types

type UploadConfigItem

type UploadConfigItem struct {
	StorageType string                 `json:"storage_type" dc:"存储类型"`
	UploadExt   string                 `json:"upload_ext"  dc:"允许上传扩展"`
	Config      map[string]interface{} `json:"config" dc:"配置内容"`
}

UploadConfigItem 上传配置属性

type UploadConfigLocalItem

type UploadConfigLocalItem struct {
	StorageType string `json:"storage_type" dc:"存储类型"`
	Root        string `json:"root" dc:"上传根目录"`
	Path        string `json:"url" dc:"上传附件地址"`
	FileExt     string `json:"file_ext" dc:"文件上传控制"`
}

UploadConfigLocalItem 本地上传配置

Jump to

Keyboard shortcuts

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