config

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	rest.RestConf
	Auth               rest.AuthConf
	UploadConf         UploadConf
	DatabaseConf       config.DatabaseConf
	CasbinDatabaseConf config.DatabaseConf
	RedisConf          redis.RedisConf
	CasbinConf         casbin.CasbinConf
	CoreRpc            zrpc.RpcClientConf
	CROSConf           config.CROSConf
}

type UploadConf

type UploadConf struct {
	MaxImageSize        int64  `json:",default=33554432,env=MAX_IMAGE_SIZE"`
	MaxVideoSize        int64  `json:",default=1073741824,env=MAX_VIDEO_SIZE"`
	MaxAudioSize        int64  `json:",default=33554432,env=MAX_AUDIO_SIZE"`
	MaxOtherSize        int64  `json:",default=10485760,env=MAX_OTHER_SIZE"`
	PrivateStorePath    string `json:",env=PRIVATE_PATH"`
	PublicStorePath     string `json:",env=PUBLIC_PATH"`
	ServerURL           string `json:",env=SERVER_URL"`
	DeleteFileWithCloud bool   `json:",env=DELETE_FILE_WITH_CLOUD,default=true"`
}

Jump to

Keyboard shortcuts

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