add set background and icon of hub functions
This commit is contained in:
+26
-22
@@ -10,31 +10,35 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
Port uint32 = 8080
|
||||
MaxDirectMsgCache uint32 = 32
|
||||
MaxHubChannelMsgCache uint32 = 16
|
||||
FileStorageBucketName string = "communicator"
|
||||
MaxRequestBytes uint32 = 4 << 10
|
||||
MaxRequestWithFileBytes uint32 = 1 << 30
|
||||
MaxRequestWithAvatarBytes uint32 = 1 << 20
|
||||
MaxRequestWithProfileBgBytes uint32 = 4 << 20
|
||||
FileProcessingPartBytes uint64 = 12 << 20
|
||||
FileProcessingThreads uint = 3
|
||||
FileDownloadLinkTtl time.Duration = 24 * time.Hour
|
||||
Port uint32 = 8080
|
||||
MaxDirectMsgCache uint32 = 32
|
||||
MaxHubChannelMsgCache uint32 = 16
|
||||
FileStorageBucketName string = "communicator"
|
||||
MaxRequestBytes uint32 = 4 << 10
|
||||
MaxRequestWithFileBytes uint32 = 1 << 30
|
||||
MaxRequestWithAvatarBytes uint32 = 1 << 20
|
||||
MaxRequestWithProfileBgBytes uint32 = 4 << 20
|
||||
MaxRequestWithHubIconBytes uint32 = 1 << 20
|
||||
MaxRequestWithHubBackgroundBytes uint32 = 10 << 20
|
||||
FileProcessingPartBytes uint64 = 12 << 20
|
||||
FileProcessingThreads uint = 3
|
||||
FileDownloadLinkTtl time.Duration = 24 * time.Hour
|
||||
)
|
||||
|
||||
type configFile struct {
|
||||
Port uint32 `toml:"port"`
|
||||
MaxDirectMsgCache uint32 `toml:"max_direct_messages_cache"`
|
||||
MaxHubChannelMsgCache uint32 `toml:"max_hub_channel_msg_cache"`
|
||||
MaxRequestBytes uint32 `toml:"max_request_bytes"`
|
||||
MaxRequestWithFileBytes uint32 `toml:"max_request_with_file_bytes"`
|
||||
MaxRequestWithAvatarBytes uint32 `toml:"max_request_with_avatar_bytes"`
|
||||
MaxRequestWithProfileBgBytes uint32 `toml:"max_request_with_profile_bg_bytes"`
|
||||
FileProcessingPartBytes uint64 `toml:"file_processing_part_bytes"`
|
||||
FileProcessingThreads uint `toml:"file_processing_threads"`
|
||||
FileStorageBucketName string `toml:"file_storage_bucket_name"`
|
||||
FileDownloadLinkTtl time.Duration `toml:"file_download_link_ttl"`
|
||||
Port uint32 `toml:"port"`
|
||||
MaxDirectMsgCache uint32 `toml:"max_direct_messages_cache"`
|
||||
MaxHubChannelMsgCache uint32 `toml:"max_hub_channel_msg_cache"`
|
||||
MaxRequestBytes uint32 `toml:"max_request_bytes"`
|
||||
MaxRequestWithFileBytes uint32 `toml:"max_request_with_file_bytes"`
|
||||
MaxRequestWithAvatarBytes uint32 `toml:"max_request_with_avatar_bytes"`
|
||||
MaxRequestWithProfileBgBytes uint32 `toml:"max_request_with_profile_bg_bytes"`
|
||||
MaxRequestWithHubIconBytes uint32 `toml:"max_request_with_hub_icon_bytes"`
|
||||
MaxRequestWithHubBackgroundBytes uint32 `toml:"max_request_with_hub_background_bytes"`
|
||||
FileProcessingPartBytes uint64 `toml:"file_processing_part_bytes"`
|
||||
FileProcessingThreads uint `toml:"file_processing_threads"`
|
||||
FileStorageBucketName string `toml:"file_storage_bucket_name"`
|
||||
FileDownloadLinkTtl time.Duration `toml:"file_download_link_ttl"`
|
||||
}
|
||||
|
||||
func LoadConfFile() {
|
||||
|
||||
Reference in New Issue
Block a user